secondary y-axis

It appears that this feature is available through the

    > twinx() function according to:

Right -- see also examples/two_scales.py

    > It seems like once I called the twinx function, the x-axis
    > settings that where on the original axis are ignored and I
    > can't seem to change the axis settings.
    > pylab.axes([0.1,30,0,1]) returned an error: RuntimeError:
    > Transformation is not invertible

Please post a free-standing, complete example which replicates the
bug.

Thanks,
JDH

This morning on my office computer I don't seem to have the same problem. (I will see if I can recreate my problem on my laptop at home later.)

I do have one new problem though. After adding the second plot, I need to refresh the legend of the first plot because the plot on twinx wrote over it. Any calls to legend seem to be working with the lines that are drawn on twinx. I could avoid this problem and make a slightly nicer looking plot if I could first draw on the twinx axis (with the y-axis ticks on the right) and then draw on the "normal" axis (with the y-axis ticks and label on the left). Is this possible?

And can I make one legend that includes the plots from both axes?

Thanks for your help John. I think I am getting close to a really nice graph with a lot of useful information on it.

Ryan

John Hunter wrote:

···

"Ryan" == Ryan Krauss <ryanfedora@...614...> writes:

    > It appears that this feature is available through the
    > twinx() function according to:

Right -- see also examples/two_scales.py

    > It seems like once I called the twinx function, the x-axis
    > settings that where on the original axis are ignored and I
    > can't seem to change the axis settings.
    > pylab.axes([0.1,30,0,1]) returned an error: RuntimeError:
    > Transformation is not invertible

Please post a free-standing, complete example which replicates the
bug.

Thanks,
JDH

-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

I am on my computer at home and can't recreate my problem. I don't know what I did wrong last night. I could still use help though on the legend refresh stuff in my other message.

Ryan Krauss wrote:

···

This morning on my office computer I don't seem to have the same problem. (I will see if I can recreate my problem on my laptop at home later.)

I do have one new problem though. After adding the second plot, I need to refresh the legend of the first plot because the plot on twinx wrote over it. Any calls to legend seem to be working with the lines that are drawn on twinx. I could avoid this problem and make a slightly nicer looking plot if I could first draw on the twinx axis (with the y-axis ticks on the right) and then draw on the "normal" axis (with the y-axis ticks and label on the left). Is this possible?

And can I make one legend that includes the plots from both axes?

Thanks for your help John. I think I am getting close to a really nice graph with a lot of useful information on it.

Ryan

John Hunter wrote:

    > It appears that this feature is available through the
    > twinx() function according to:

Right -- see also examples/two_scales.py

    > It seems like once I called the twinx function, the x-axis
    > settings that where on the original axis are ignored and I
    > can't seem to change the axis settings.
    > pylab.axes([0.1,30,0,1]) returned an error: RuntimeError:
    > Transformation is not invertible

Please post a free-standing, complete example which replicates the
bug.

Thanks,
JDH

-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users