Created
March 23, 2019 22:04
-
-
Save rileypeterson/279572184ded8e33aac4246030e4658a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ax1.set_zorder(ax2.get_zorder()+1) # put ax in front of ax2 | |
ax1.patch.set_visible(False) # hide the 'canvas' | |
from: http://matplotlib.1069221.n5.nabble.com/Control-twinx-series-zorder-ax2-series-behind-ax1-series-or-place-ax2-on-left-ax1-on-right-td12994.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this line to put back the canvas:
ax1.patch.set_visible(True)