From a2b44ba7c137319ea7bf4ab7c15baa2907e85216 Mon Sep 17 00:00:00 2001 From: jgieseler Date: Fri, 3 Nov 2023 15:50:35 +0200 Subject: [PATCH] bugfix marker --- solarmach/__init__.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/solarmach/__init__.py b/solarmach/__init__.py index c2b2fa5..1eb10f0 100644 --- a/solarmach/__init__.py +++ b/solarmach/__init__.py @@ -94,7 +94,7 @@ def get_sw_speed(body, dtime, trange=1, default_vsw=400.0): Date and time of measurement trange : int of float Timedelta for which measurements are obtainted before and after "dtime", - i.e. dtime +- trange (in hours). Default value 2. + i.e. dtime +- trange (in hours). Default value 1. default_vsw : float Default solar wind bulk speed in km/s that is returned if no measurements can be obtained. Default value 400.0 @@ -500,11 +500,11 @@ def plot(self, plot_spirals=True, print("WARNING: The usage of numbered_markers is deprecated and will be discontinued in the future! Use markers='numbers' instead.") print('') - if markers in ['n', 'number']: - markers='numbers' - - if markers in ['l', 'letter']: - markers='letters' + if markers: + if markers.lower() in ['n', 'number']: + markers='numbers' + if markers.lower() in ['l', 'letter']: + markers='letters' if test_plotly: import plotly.graph_objects as go @@ -989,11 +989,11 @@ def plot_pfss(self, print("WARNING: The usage of numbered_markers is deprecated and will be discontinued in the future! Use markers='numbers' instead.") print('') - if markers.lower() in ['n', 'number']: - markers='numbers' - - if markers.lower() in ['l', 'letter']: - markers='letters' + if markers: + if markers.lower() in ['n', 'number']: + markers='numbers' + if markers.lower() in ['l', 'letter']: + markers='letters' # save inital rcParams and update some of them: initial_rcparams = plt.rcParams.copy()