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

clip_on kwarg like in matplotlib to avoid cutting off points at boundary #1322

Open
SimonEnsemble opened this issue Sep 17, 2021 · 5 comments
Labels
Axis related to `Axis()` objects enhancement Feature requests and enhancements

Comments

@SimonEnsemble
Copy link

clip_on kwarg would be cool to still show the entirety of the markers from scatter after xlims!(ax, [0, 1]). see boundaries on left and right how two points are cut in half.

image

@jkrumbiegel
Copy link
Member

Currently, clipping is done on scene level, so every plot inside a scene is clipped at the px_area rectangle. Either this would have to be made toggleable on plot object level (participate in clipping or not) or better yet, every plot should optionally have its own clipping area. This would be needed for triangular shapes for ternary plots for example, or more complex polygons for geographic plots with round frames. In CairoMakie, it would be trivial to implement, but I'm not sure at all how clipping in GLMakie works.

@SimonEnsemble
Copy link
Author

we have another use case where clip_on is needed.

seems important for ylims!(0, nothing) but that cuts the points in half...
any way to draw the points over the axis?

Screenshot 2023-04-20 at 5 57 31 PM

@jkrumbiegel
Copy link
Member

There's no way to do that currently. In principle it would be possible to disable clipping to the scene px_area. I would actually like to see arbitrary clipping shapes for polar plots and such.

@ffreyer
Copy link
Collaborator

ffreyer commented Aug 22, 2024

I set up clip planes to clip scatter markers when their coordinate gets clipped rather than their pixels. So we could use those to avoid cutting off markers

@ffreyer ffreyer added enhancement Feature requests and enhancements Axis related to `Axis()` objects labels Aug 22, 2024
@curioustolearn
Copy link

I would love this feature too. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Axis related to `Axis()` objects enhancement Feature requests and enhancements
Projects
None yet
Development

No branches or pull requests

4 participants