Skip to content

Commit

Permalink
Update _base.py (#1140)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddkohler committed Sep 17, 2023
1 parent ff51ebf commit 6eff944
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WrightTools/artists/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def _parse_plot_args(self, *args, **kwargs):
raise wt_exceptions.ValueError("Cannot squeeze axis to fit channel")
zi = data.channels[channel_index].points
if not zi.ndim == 2:
raise wt_exceptions.DimensionalityError(zi.ndim, data.ndim)
raise wt_exceptions.DimensionalityError(2, zi.ndim)
squeeze = tuple([0 if i else slice(None) for i in squeeze])
if plot_type == "imshow":
if "aspect" not in kwargs.keys():
Expand Down Expand Up @@ -646,7 +646,7 @@ def plot(self, *args, **kwargs):
zi = data.channels[channel_index].points
xi = xa[squeeze]
if not zi.ndim == 1:
raise wt_exceptions.DimensionalityError(1, data.ndim)
raise wt_exceptions.DimensionalityError(1, zi.ndim)
args = [xi, zi] + args
else:
data = None
Expand Down

0 comments on commit 6eff944

Please sign in to comment.