Skip to content

Commit

Permalink
fix: only skip plot if RGT is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
tsutterley committed Nov 29, 2023
1 parent 1462fc1 commit 96ff85b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion clients/python/sliderule/ipysliderule.py
Original file line number Diff line number Diff line change
Expand Up @@ -2508,12 +2508,14 @@ def plot(self, **kwargs):
kwargs.setdefault('cycle', 0)
kwargs.setdefault('RGT', 0)
kwargs.setdefault('GT', 0)
kwargs.setdefault('LR', 0)
kwargs.setdefault('PT', 0)
# variable to plot
column = kwargs['column_name']
RGT = int(kwargs['RGT'])
GT = int(kwargs['GT'])
# skip plot creation if no values are entered
if (RGT == 0) or (GT == 0):
if (RGT == 0):
return
# create figure axis
if kwargs['ax'] is None:
Expand Down

0 comments on commit 96ff85b

Please sign in to comment.