I have a problem with plotting two different quantities on the same plot (overlaying two different axes).
I plot two different quantities, with different scales, on two overlapping axes. So, I want the quantity 1 to refer to the y axis on the left (with its ticks and labels), and quantity 2 to refer to the y axis on the right (with its ticks and labels). I choose on which side I want the ticks with ax.yaxis.tick_left(). Anyway, if I want then to change the label size of the right y axis, I can't do that. I included a sample plot.
My code is something like this:
F = figure()
AX1 = F.add_axes(rect)
AX1.yaxis.tick_left() #with this I say quantity 1=left y axis
#Second quantity (with different scale)
AX2 = F.add_axes(rect,frameon=False)
AX2.yaxis.tick_right() #If I leave this line, I can't change the tick label size, if I remove it, I get ticks on both sides
fig_wrong1.pdf (49.9 KB)