Skip to content

Commit f5bc21e

Browse files
Fix typo, add separate entries for "nodata" and "visible" options
1 parent 6c22ec8 commit f5bc21e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pytplot/options.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ def options(name, option=None, value=None, opt_dict=None, quiet=False):
4747
second_axis_size numeric The size of the second axis to display
4848
data_gap numeric If there is a gap in the data larger than this number in seconds, then insert
4949
visible bool If False, do not display lines for this variable.
50+
nodata bool If True, do not display lines for this variable.
5051
(cont) (cont) NaNs. This is similar to using the degap procedure on the variable, but is
5152
(cont) (cont) applied at plot-time, and does not persist in the variable data.
5253
====================== =========== ===========================================================================================================================
@@ -354,7 +355,7 @@ def options(name, option=None, value=None, opt_dict=None, quiet=False):
354355
else:
355356
pytplot.data_quants[i].attrs['plot_options']['zaxis_opt']['z_axis_type'] = 'linear'
356357

357-
elif option =='value':
358+
elif option =='visible':
358359
pytplot.data_quants[i].attrs['plot_options']['line_opt']['visible'] = bool(value)
359360

360361
elif option =='nodata':

0 commit comments

Comments
 (0)