If I understand your question right, you want to plot two things on the same axes
with no shared axis
. There is probably a better way to do this, but you can stack twinx
(doc) and twiny
(doc) as such
ax # your first axes
ax_new = ax.twinx().twiny()
Which will give you tick marks on all sides of the plot. ax
will plot against the bottom and left, ax_new
will plot against the top and right.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…