Skip to content

Commit

Permalink
fix issue with multi-variable plotting
Browse files Browse the repository at this point in the history
  • Loading branch information
robertjwilson committed Sep 12, 2022
1 parent cbfb8ee commit 3164b5a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nctoolkit/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ def plot(self, vars=None, autoscale=True, out = None, **kwargs):

if type(vars) is not list and vars is not None:
raise ValueError("vars must be a list")
if vars is None:
vars = self.variables

if type(vars) is list:
if len(set(self.contents.query("variable in @vars").nlevels)) > 1:
Expand Down

0 comments on commit 3164b5a

Please sign in to comment.