Skip to content

Commit

Permalink
Remove 'showlegend' options.
Browse files Browse the repository at this point in the history
It's not actually a valid kwarg in matplotlib, at least not now.
  • Loading branch information
luciansmith committed Oct 22, 2021
1 parent e9610e3 commit ef54bfa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tellurium/plotting/engine_mpl.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,18 +68,18 @@ def render(self):
if "mode" in dataset:
mode = dataset["mode"]
#Set different defaults based on the mode
passkeys = ["alpha", "showlegend", "color", "linewidth", "marker", "mfc", "mec", "ms", "mew"]
passkeys = ["alpha", "color", "linewidth", "marker", "mfc", "mec", "ms", "mew"]
if mode=="line":
kwargs['marker'] = ''
kwargs['linewidth'] = self.linewidth
elif mode=="markers":
kwargs['marker'] = 'o'
kwargs['linewidth'] = 0
passkeys = ["alpha", "showlegend", "color", "marker", "mfc", "mec", "ms", "mew"]
passkeys = ["alpha", "color", "marker", "mfc", "mec", "ms", "mew"]
elif mode=="bar":
passkeys = ["alpha", "showlegend", "color", "linewidth", "edgecolor", "bottom"]
passkeys = ["alpha", "color", "linewidth", "edgecolor", "bottom"]
elif mode=="fillBetween":
passkeys = ["alpha", "showlegend", "color", "y2"]
passkeys = ["alpha", "color", "y2"]
for dkey in dataset:
element = dataset[dkey]
if element is None:
Expand Down

0 comments on commit ef54bfa

Please sign in to comment.