-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
set_ticks() on shared axis #8320
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
Comments
When one performs set_xticks on one Axes object, the others should follow since sharex=True. In other words:
|
Is there a workaround for this? |
@csbrown Yes, the workaround is found under the headline "Expected outcome" in the original post. |
This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help! |
This was fixed by #18529. |
Bug report
Bug summary
Not sure it's a bug, but in the following example the order in which you change subplots properties matters.
Suppose you have several subplots with the shared axis and you set ticks for this axis with the range outside the data. Doing it for all subplots one by one, you get ticks placed correctly on the last subplot and incorrectly on all others.
Code for reproduction
Actual outcome

Expected outcome
Let's try the same code, but change all subplots properties afterwards.
Result:

Not so expected outcome
Finally, change all subplots properties somewhere earlier.
Result:

Matplotlib version
Matplotlib 2.0.0 (installed using Anaconda)
Python 3.5.3
Fedora 25
The text was updated successfully, but these errors were encountered: