From 96ff85b4fc256ad34fe8c4f2ba903ebeb7e4578d Mon Sep 17 00:00:00 2001 From: tsutterley Date: Tue, 28 Nov 2023 17:11:31 -0800 Subject: [PATCH] fix: only skip plot if RGT is 0 --- clients/python/sliderule/ipysliderule.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/clients/python/sliderule/ipysliderule.py b/clients/python/sliderule/ipysliderule.py index 4a73778b..184a2b16 100644 --- a/clients/python/sliderule/ipysliderule.py +++ b/clients/python/sliderule/ipysliderule.py @@ -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: