Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FR]Axis scale option 1/x #5032

Open
jonschlipf opened this issue Nov 22, 2024 · 0 comments
Open

[FR]Axis scale option 1/x #5032

jonschlipf opened this issue Nov 22, 2024 · 0 comments

Comments

@jonschlipf
Copy link

Hi,

For a type of plot I will be doing quite often in the near future, it would be very helpful to have a secondary x axis on top of the plot featuring "inverse" (1/x) tick scaling. Basically like this stack overflow discusstion for the case of Python.

https://stackoverflow.com/questions/56418477/displaying-wavenumber-and-wavelength-on-one-plot
This coule be achieved easily via twiny(), if there was an option :inverse for the axis scale. Currently available are only:
[:identity, :ln, :log2, :log10, :asinh, :sqrt]

Since Plots.jl is a "meta" package, at this point I do not quite understand if this would have to be done in Plots itself, or at the interfaces to all backends. I would appreciate if someone could implement this if it is not too much effort, or point me to what I would have to modify to do it myself.

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant