How to use "plotyy" for showing several sets of graphs in one plot

plotting
#1

Dear all.
I would like to know how to use “plotyy” for showing several sets of graphs in one plot.
Thank you very much
Best regards
using PyPlot,SetPyPlot
plotyy(A1, B1, C1, D1)
plotyy(A2, B2, C2, D2)
plotyy(A3, B3, C3, D3)

0 Likes

#2

Perhaps
https://gist.github.com/gizmaa/7214002
helps (scroll down to " Multi-axis Plot").

Notice, however, that the ax[:set_position](new_position) should now be written ax.set_position(new_position)

0 Likes

#3

Thank you very much for replying.
I copied the code from the link but it does not work for me.
I am using julia version 0.6.3

0 Likes

#4

That could be the reason. I would recommend upgrading to 1.1.

Also, “does not work” is not sufficient to help you. Please provide an MWE and the error message.

1 Like