Skip to content
Advertisement

Second y-axis not showing when using matplotlib

I am trying to plot data_1 and data_2 against data (data supplied in example) using 2 y-axis on different scales. When I run my code it seems only data_2 gets plotted. I am limited to only use the matplotlib library for this. Am I missing something here?

JavaScript

enter image description here

Advertisement

Answer

They are plotted over each other. Change the linestyle or axis limits to plot them differently.

enter image description here

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