Skip to content

Commit

Permalink
interact2D bugfix (#1099)
Browse files Browse the repository at this point in the history
select data before prune
  • Loading branch information
ddkohler committed Aug 31, 2022
1 parent 3c6c8ca commit 29f0bc5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).

## Changed
- `Axis`: space character ("\s") in expressions are culled.
- fixed `interact2D` bug: channel/axes can now be specified with non-zero index arguments

## [3.4.6]

Expand Down
2 changes: 1 addition & 1 deletion WrightTools/artists/_interact.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,9 @@ def interact2D(
# avoid changing passed data object
data = data.copy()
# unpack
data.prune(keep_channels=channel, verbose=False)
channel = get_channel(data, channel)
xaxis, yaxis = get_axes(data, [xaxis, yaxis])
data.prune(keep_channels=channel.natural_name, verbose=False)
cmap = cmap if cmap is not None else get_colormap(channel.signed)
current_state = SimpleNamespace()
# create figure
Expand Down

0 comments on commit 29f0bc5

Please sign in to comment.