Skip to content

Commit

Permalink
bugfix marker
Browse files Browse the repository at this point in the history
  • Loading branch information
jgieseler committed Nov 3, 2023
1 parent 26d6f05 commit a2b44ba
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions solarmach/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit a2b44ba

Please sign in to comment.