-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
ConnectionPatch hidden by plots #8744
Comments
This is actually the expected behavior, the second axes (
|
The details of z-order at both the Axes and Figure level should be clearly documented. |
Could an artist such as ConnectionPatch be added to the figure rather than to the axes (and if it can, is there a mechanism to let such artists be drawn last)? This is where it really belongs after all. |
I think it is also surprising (and does not seem to be explicitly documented) that the artist must be added to the axes passed as axesA rather than axesB, otherwise the ConnectionPatch is not drawn at all. |
It probably should live on the Figure (and there is even an |
It'd be a nice to have such a feature. Is there any progress on this? Did anyone find any workaround @anntzer @tacaswell @yha ? |
Fig.add_artist doesn’t work? |
Thanks @jklymak , do you mean |
I just tried that syntax, it fails with error below.
|
Yeah, it's not working yet. But that would be the plan to have it working soon. |
Actually, I think the logic in matplotlib/lib/matplotlib/patches.py Line 4449 in 1f003b0
|
@ImportanceOfBeingErnest Sure, I've pasted a notebook here: https://gist.github.com/yrevar/765cf3456af4119c9fcabf8667dadb4f |
I just found a workaround! |
A ConnectionPatch is sometimes not shown on one of the plots, depending on the position of the axesA and axesB subplots.
A reproducing example, with only minor changes to the ConnnectionPatch example from the docs:
This produces:
Tested on matplotlib 2.0.2 (from Anaconda 4.4.0) on Debian.
The text was updated successfully, but these errors were encountered: