I'd like to add a second y-axis to my plot plt.plot([1,2,4])
on the right side, which should be aligned with the left axis, but in different units which can be calculated.
For example a scaling to 1. So effectively the left y-axis will be [1,2,3,4] and the right should be [0.25, 0.5, 0.75, 1.0] and properly aligned.
How can I do that in matplotlib?
(the twin axis example seems to handle a different use-case where you have un-aligned axes on different data)