Skip to content
Advertisement

Adding a y-axis label to secondary y-axis in matplotlib

I can add a y label to the left y-axis using plt.ylabel, but how can I add it to the secondary y-axis?

JavaScript

Advertisement

Answer

The best way is to interact with the axes object directly

JavaScript

example graph

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement