Hello, I've a question on the secondary axis feature introduced in matplotlib 3.1. I'm on version 3.1.1.
My use case is to plot log values but also display the exponentiated values. I can use a twin axes with the shared scale and a functional formatter. Here is an example:
This twinx/y approach works, but I wanted originally to use the new secondary axis feature. I see to options for this:
Option 1 works initially, but breaks when I want to use a LogLocator to have equally spaced log values:
Option 2 doesn't work either due. Setting the formatter has no
effect
Is it an expected behavior (or a known bug) that changing the locator and the formatter of a secondary axis has no effect? Did I miss something? In the examples
(https://matplotlib.org/3.1.1/gallery/subplots_axes_and_figures/secondary_axis.html),
there is one example (number 3, with interpolated transforms)
which uses secax.xaxis.set_minor_locator(AutoMinorLocator()), but
I don't know if it is effective or not. Best, Pierre _______________________________________________ Matplotlib-users mailing list [hidden email] https://mail.python.org/mailman/listinfo/matplotlib-users |
The fact that Opion 1 does not work is a bug. This has been fixed in the meantime, so it should work with the yet to be released matplotlib 3.2. The fact that Opion 2 does not work can be considered a missing
feature. Feel free to open an issue about it, which can be tagged
as feature request/wishlist feature.
(https://github.com/matplotlib/matplotlib/pull/14463 might be
related.) Am 14.10.2019 um 17:38 schrieb Pierre
Haessig:
_______________________________________________ Matplotlib-users mailing list [hidden email] https://mail.python.org/mailman/listinfo/matplotlib-users |
Thank you very much for the feedback!
Best, Pierre Le 14/10/2019 à 19:49, Elan Ernest a écrit : > > The fact that Opion 1 does not work is a bug. This has been fixed in > the meantime, so it should work with the yet to be released matplotlib > 3.2. > > The fact that Opion 2 does not work can be considered a missing > feature. Feel free to open an issue about it, which can be tagged as > feature request/wishlist feature. > (https://github.com/matplotlib/matplotlib/pull/14463 might be related.) > _______________________________________________ Matplotlib-users mailing list [hidden email] https://mail.python.org/mailman/listinfo/matplotlib-users |
Free forum by Nabble | Edit this page |