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] Plot axes names on another scale #10

Open
jbrea opened this issue Feb 5, 2024 · 5 comments
Open

[FR] Plot axes names on another scale #10

jbrea opened this issue Feb 5, 2024 · 5 comments
Labels
help wanted Extra attention is needed

Comments

@jbrea
Copy link

jbrea commented Feb 5, 2024

Sometimes it is useful to plot the data points and the axes names on a different scale, like e.g.

where the data is shown on the black scale and the axes names on the red scale.
Would this be easy to add as a feature?

@juliohm
Copy link
Member

juliohm commented Feb 5, 2024 via email

@jbrea
Copy link
Author

jbrea commented Feb 5, 2024

Not sure this can be done simply by forwarding a keyword argument to an internal Makie function. As you can see in the example, the axes names are plotted on a separate axis (the red one), which shares with the black one the origin, but has a different scale. I dont't even know, how to implement this in Makie. A new keyword argument for biplot could be axescale with default :auto (to plot on a separate scale) and :same (to plot on the same scale as the data; current behavior).

@juliohm
Copy link
Member

juliohm commented Feb 5, 2024

I don't know if I understand it. Do you know that we provide options to control the red axes already, right? The other black axes is the normal Makie axes that you can set with normal Makie functions such as ax.aspect = ..., ax.xlabel = ...

@juliohm
Copy link
Member

juliohm commented Feb 5, 2024

Can you elaborate why the options axeslabel, axesbody, ... in the docstring of bitplot don't work in your use case?

EDIT: you mean the ticks on the right and upper parts of the axes?

@jbrea
Copy link
Author

jbrea commented Feb 5, 2024

EDIT: you mean the ticks on the right and upper parts of the axes?

Yes.

@juliohm juliohm added the help wanted Extra attention is needed label Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants