PyPlot move alternative y axis to background

后端 未结 1 875
暗喜
暗喜 2020-11-27 07:43

In pyplot, you can change the order of different graphs using the zorder option or by changing the order of the plot() commands. However, when you

相关标签:
1条回答
  • 2020-11-27 08:41

    You can set the zorder of an axes, ax.set_zorder(). One would then need to remove the background of that axes, such that the axes below is still visible.

    ax2 = ax1.twinx()
    ax1.set_zorder(10)
    ax1.patch.set_visible(False)
    
    0 讨论(0)
提交回复
热议问题