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

Extent as axis limits in Makie? #28

Open
tiemvanderdeure opened this issue Aug 25, 2024 · 3 comments
Open

Extent as axis limits in Makie? #28

tiemvanderdeure opened this issue Aug 25, 2024 · 3 comments

Comments

@tiemvanderdeure
Copy link

It could be pretty neat if you could pass in an Extent object as the limit keyword when making an Axis in Makie.

I guess all that would be needed is a tiny extension that just does the limits = (ext.X..., ext.Y...) conversion automatically.
`

@rafaqz
Copy link
Owner

rafaqz commented Aug 25, 2024

Not sure how the dispatch will work?

But I think Makie already depends on Extents so it will have to be there not here, and wont need an extension.

@asinghvi17
Copy link

IIUC this just needs convert methods to Rect2/3 and the appropriate dispatches on the limit functions.

@rafaqz
Copy link
Owner

rafaqz commented Oct 26, 2024

I haven't been pushing Extents.jl very hard outside of geospatial tools that I work on, but it would be very nice if it just worked everywhere that things have an obvious extent, like Makie plots.

I'm also just not familiar enough with Makie internals to know where to put anything. @asinghvi17 if you know where those methods are in Makie some links might help getting this implemented.

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

3 participants