Multiple Y Axes...

Hello NG,

    please excuse my poor knowledge of matplotlib. I am searching for a way
to do plots with multiple Y axes: for those of you that use Matlab, I am
looking for something like plotyy and, if it's possible, also something more
complicated like plotyyy or ploty4 (available at Matlab Central File
Exchange) that allow you to put a third and fourth Y-axis on a plot, like in
this screenshot:

http://www.mathworks.de/matlabcentral/fileexchange/util.do?objectId=4425&imgName=plot4y.png

Is something like this possible with matplotlib? Is there anyone that has a
small example on how to do it?

Thank you in advance for every suggestion.

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.virgilio.it/infinity77

Hello Andrea,

Have you looked at the file, two_scales.py, in the examples
directory? This example would appear to show you how to create
plots with two or more scales per axis.

– Paul

···

On 1/28/06, Andrea Gavana <andrea_gavana@…517…> wrote:

Hello NG,

please excuse my poor knowledge of matplotlib. I am searching for a way

to do plots with multiple Y axes: for those of you that use Matlab, I am
looking for something like plotyy and, if it’s possible, also something more

complicated like plotyyy or ploty4 (available at Matlab Central File
Exchange) that allow you to put a third and fourth Y-axis on a plot, like in
this screenshot:


http://www.mathworks.de/matlabcentral/fileexchange/util.do?objectId=4425&imgName=plot4y.png

Is something like this possible with matplotlib? Is there anyone that has a
small example on how to do it?

Thank you in advance for every suggestion.

Andrea.

“Imagination Is The Only Weapon In The War Against Reality.”
http://xoomer.virgilio.it/infinity77


Paul
Barrett,
PhD
Johns Hopkins University
Assoc. Research Scientist Dept of Physics and Astronomy
Phone: 410-516-5190 Baltimore, MD 21218

I've run the two-scale demo, but there is a big problem when I zoom into it (in the gtk gui): Only one of the 2 scales (the left one) changes.
Is there a way to select/zoom/move the second scale?
I changed the date_demo.py to display 2 stock quotes, but it is actualy unusable because of this.
Any help welcome

Paul Barrett wrote:

···

Hello Andrea,

Have you looked at the file, two_scales.py, in the examples directory? This example would appear to show you how to create plots with two or more scales per axis.

-- Paul

On 1/28/06, *Andrea Gavana* <andrea_gavana@...517... > <mailto:andrea_gavana@…517…>> wrote:

    Hello NG,

        please excuse my poor knowledge of matplotlib. I am searching
    for a way
    to do plots with multiple Y axes: for those of you that use
    Matlab, I am
    looking for something like plotyy and, if it's possible, also
    something more
    complicated like plotyyy or ploty4 (available at Matlab Central File
    Exchange) that allow you to put a third and fourth Y-axis on a
    plot, like in
    this screenshot:

    http://www.mathworks.de/matlabcentral/fileexchange/util.do?objectId=4425&imgName=plot4y.png
    <http://www.mathworks.de/matlabcentral/fileexchange/util.do?objectId=4425&imgName=plot4y.png&gt;

    Is something like this possible with matplotlib? Is there anyone
    that has a
    small example on how to do it?

    Thank you in advance for every suggestion.

    Andrea.

    "Imagination Is The Only Weapon In The War Against Reality."
    Infinity77
    <http://xoomer.virgilio.it/infinity77&gt;

--
Paul Barrett, PhD Johns Hopkins University
Assoc. Research Scientist Dept of Physics and Astronomy
Phone: 410-516-5190 Baltimore, MD 21218