Skip to content

Commit 207ecd2

Browse files
committed
tests
1 parent ffe992d commit 207ecd2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

WrightTools/artists/_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def _parse_plot_args(self, *args, **kwargs):
159159
args = [xi, yi, zi] + args
160160
# limits
161161
kwargs = self._parse_limits(
162-
data=data, channel_index=channel_, dynamic_range=dynamic_range, **kwargs
162+
data=data, channel=channel_, dynamic_range=dynamic_range, **kwargs
163163
)
164164
if plot_type == "contourf":
165165
if "levels" not in kwargs.keys() and "norm" not in kwargs.keys():

WrightTools/data/_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ def gradient(self, axis, *, channel=0):
727727
)
728728
rtype = np.result_type(channel.dtype, float)
729729
new = self.create_channel(
730-
"{}_{}_gradient".format(channel, axis),
730+
"{}_{}_gradient".format(channel.natural_name, axis),
731731
values=np.empty(channel.shape, dtype=rtype),
732732
)
733733

0 commit comments

Comments
 (0)