-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
HostAxesBase now adds appropriate _remove_method to its parasite axes. #4898
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
HostAxesBase now adds appropriate _remove_method to its parasite axes. #4898
Conversation
Can you also add tests and a |
Hmm there seems to be a problem with removing |
Ok it's because the |
Are you sure you want a |
I like to advertise when we add long standing missing functionality. It also serves as advertisement that the remove functionality exists on all If you don't want to do it i will leave it to your judgement. On Tue, Aug 11, 2015, 7:01 PM productivememberofsociety666 <
|
Could you reduce the tests to only having pngs ? |
Regarding the failing build, I don't know why the pictures aren't close. It works on my machine with all Python versions from 2.6 to 3.4. Fonts maybe? |
Make sure that you don't have any funny rcparams set (which should not Also check what version of freetype you have installed against what is on On Wed, Aug 12, 2015 at 6:33 PM productivememberofsociety666 <
|
Can you also squash this down to remove the un-used images from the history? Part of the goal is to keep the size of the repository down. |
fc5241b
to
1910487
Compare
All right I took out an rcparam that set the backend to GTK3 and uploaded a slightly modified image. Now apparently all builds work except that 2.7 one due to another test failing... |
Your first few commits were made without setting your author info; you should update them for reasonable attribution. |
1910487
to
9c24d49
Compare
Build passes now although I didn't change anything. The test that failed and then magically worked was |
9c24d49
to
e89181d
Compare
There is a race condition in the math text rendering tests that On Thu, Aug 13, 2015, 6:35 AM productivememberofsociety666 <
|
I think the reason that the I think that this remove behavior should also restore the visibility settings of the host axes. Can you also check if the twin functions mutate any other data structures in the axes (I know the normal |
Awesome 👍 Thanks for wading into this! I am not going to hold 1.5 for this PR, but have no problem with it sneaking in (it is far less disruptive than other open PRs). |
c8f67b6
to
51d49be
Compare
Looks like a great bugfix. Looks like this needs a rebase, then another run through Travis, but then I'm happy to merge. |
51d49be
to
0183a67
Compare
0183a67
to
0fa9e74
Compare
9146ab3
to
4760c14
Compare
… updated _remove_method.
4760c14
to
d268abf
Compare
Rebase done! |
…_to_axes_grid1_twin_axes HostAxesBase now adds appropriate _remove_method to its parasite axes.
PR matplotlib#4898 changed the behavior of twinx() and twiny() in axes_grid1 to make them consistent with twin(). This commit inverts the "direction" of consistency and makes twin() behave like the pre-matplotlib#4898 twinx() and twiny() instead. This way, the API becomes less surprising: instead of hiding certain host axes, twin* now keeps the host axes unmodified, while the parasite axes have their axis lines hidden instead. Unfortunately, this change breaks backwards-compatibility for code relying on the specifics of host and parasite axes visibility. Helps with matplotlib#10748.
PR matplotlib#4898 changed the behavior of twinx() and twiny() in axes_grid1 to make them consistent with twin(). This commit inverts the "direction" of consistency and makes twin() behave like the pre-matplotlib#4898 twinx() and twiny() instead. This way, the API becomes less surprising: instead of hiding certain host axes, twin* now keeps the host axes unmodified, while the parasite axes have their axis lines hidden instead. Unfortunately, this change breaks backwards-compatibility for code relying on the specifics of host and parasite axes visibility. Helps with matplotlib#10748.
PR matplotlib#4898 changed the behavior of twinx() and twiny() in axes_grid1 to make them consistent with twin(). This commit inverts the "direction" of consistency and makes twin() behave like the pre-matplotlib#4898 twinx() and twiny() instead. This way, the API becomes less surprising: instead of hiding certain host axes, twin* now keeps the host axes unmodified, while the parasite axes have their axis lines hidden instead. Unfortunately, this change breaks backwards-compatibility for code relying on the specifics of host and parasite axes visibility. Helps with matplotlib#10748.
PR matplotlib#4898 changed the behavior of twinx() and twiny() in axes_grid1 to make them consistent with twin(). This commit inverts the "direction" of consistency and makes twin() behave like the pre-matplotlib#4898 twinx() and twiny() instead. This way, the API becomes less surprising: instead of hiding certain host axes, twin* now keeps the host axes unmodified, while the parasite axes have their axis lines hidden instead. Unfortunately, this change breaks backwards-compatibility for code relying on the specifics of host and parasite axes visibility. Helps with matplotlib#10748.
Fix for #4896 .
I think this should do the trick.