Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix matplotlib warning #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

jboynyc
Copy link

@jboynyc jboynyc commented Oct 21, 2022

Calling get_shift_graph gives a warning when used with matplotlib 3.3+:

UserWarning: FixedFormatter should only be used together with FixedLocator

This issue explains why the warning occurs and suggests setting xticks first before setting xticklabels, which is what this PR does.

matplotlib 3.3 and above gives a warning when calling `get_shift_graph`:

    UserWarning: FixedFormatter should only be used together with FixedLocator

This issue explains why the warning occurs and suggests setting `xticks`
first before setting `xticklabels`:
matplotlib/matplotlib#18848
@jboynyc jboynyc force-pushed the master branch 2 times, most recently from 7098e60 to 5031ae6 Compare February 24, 2023 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant