Skip to content

Commit

Permalink
don't need to force to lists
Browse files Browse the repository at this point in the history
  • Loading branch information
newville committed Jan 19, 2025
1 parent 3905d16 commit fc45e62
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions wxmplot/plotpanel.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,16 +504,16 @@ def set_xtick_labels(self, xticks, yaxes=1, side=None):
set xtick labels from dict of {x: label} pairs
"""
yaxes, axes = self.get_yaxes(yaxes, side=side)
axes.set_xticks(list(xticks.keys()))
axes.set_xticklabels(list(xticks.values()))
axes.set_xticks(xticks.keys())
axes.set_xticklabels(xticks.values())

def set_ytick_labels(self, yticks, yaxes=1, side=None):
"""
set ytick labels from dict of {y: label} pairs
"""
yaxes, axes = self.get_yaxes(yaxes, side=side)
axes.set_yticks(list(yticks.keys()))
axes.set_yticklabels(list(yticks.values()))
axes.set_yticks(yticks.keys())
axes.set_yticklabels(yticks.values())


def scatterplot(self, xdata, ydata, label=None, size=10,
Expand Down

0 comments on commit fc45e62

Please sign in to comment.