You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the spines of twin axes are drawn on top of the spines of the "base" axes. Given that they are both black, this is barely visible (because the antialiased parts are drawn twice), although it is a bit easier to see by making the axes edgecolors semitransparent.
See also #11688 (comment) for a similar case of double-striking.
Expected outcome
We could make the spines of the twinned axes invisible, which would fix the issue. The only case this would break is e.g. https://matplotlib.org/gallery/ticks_and_spines/multiple_yaxis_with_spines.html, i.e. if people are moving the other axes' spine somewhere else (we'd document that you need to make it visible again, but it would be a bit tricky to auto-detect that and/or emit the relevant warnings, although I can imaging doing that with a bit of heavy machinery...). axisartist.parasite_axes (https://matplotlib.org/gallery/axisartist/demo_parasite_axes.html, https://matplotlib.org/gallery/axisartist/demo_parasite_axes2.html) currently does make some spines of the parent invisible and some spines of the twin invisible, to avoid the double striking, and adds more machinery to restore the original visibilities when parasite axes are removed. (See also #13092.)
... or we could just decide the annoyance is too minor to be worth fretting about.
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!
Uh oh!
There was an error while loading. Please reload this page.
Bug report
Bug summary
Currently, the spines of twin axes are drawn on top of the spines of the "base" axes. Given that they are both black, this is barely visible (because the antialiased parts are drawn twice), although it is a bit easier to see by making the axes edgecolors semitransparent.
Code for reproduction
Actual outcome
The top spines are overstruck.
See also #11688 (comment) for a similar case of double-striking.
Expected outcome
We could make the spines of the twinned axes invisible, which would fix the issue. The only case this would break is e.g. https://matplotlib.org/gallery/ticks_and_spines/multiple_yaxis_with_spines.html, i.e. if people are moving the other axes' spine somewhere else (we'd document that you need to make it visible again, but it would be a bit tricky to auto-detect that and/or emit the relevant warnings, although I can imaging doing that with a bit of heavy machinery...).
axisartist.parasite_axes
(https://matplotlib.org/gallery/axisartist/demo_parasite_axes.html, https://matplotlib.org/gallery/axisartist/demo_parasite_axes2.html) currently does make some spines of the parent invisible and some spines of the twin invisible, to avoid the double striking, and adds more machinery to restore the original visibilities when parasite axes are removed. (See also #13092.)... or we could just decide the annoyance is too minor to be worth fretting about.
Matplotlib version
print(matplotlib.get_backend())
):The text was updated successfully, but these errors were encountered: