-
-
Notifications
You must be signed in to change notification settings - Fork 313
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
Bounding Boxes #1653
Comments
That's a separate issue. What's happening in your case is that bounding boxes are calculated with the limits from just after |
I can't reproduce this with fig = Figure()
ax = LScene(fig[1, 1])
t = text!(ax, ["test 1", "test 2"], position = [Point3f(0), Point3f(1)])
bb = boundingbox(t)
wireframe!(ax, bb, space = :pixel)
fig and the limit updates seem to all go through |
It works outside of recipes for me as well! I observe this behavior only within a recipe (within same environment, i.e. same Makie version) |
I think Makie still has to clean up some logic with the limits of nested plots. There's also a related problem if you want to use |
Ah, right, that's because Makie.jl/src/layouting/data_limits.jl Lines 217 to 225 in ae28055
only considers exclude for the top level plot. That should be happening with Axis3 and Axis too...
|
At least for |
I'm closing this in favor of #2881 |
I wanted to collect some issues/thoughts on bounding boxes. I'll work on them after #1596 gets merged.
Bounding Boxes ignore marker sizes
They probably shouldn't...
User facing text plots have no bounding box
Internal text bounding boxes always have pixel units widths and data space origins
They should be in whatever space the primary plot is in
Bounding boxes in different spaces
Sometimes it may be useful to get a bounding box in a different space than the plot is in. For example, if you want to annotate a point in 3D with a white background pane it would be useful to plot the text at a 3D data space position and the pane using its screen/pixel space bounding box.
Per-marker bounding boxes
Getting bounding boxes per marker or whatever makes sense for a given plot might also be useful. I think it would be necessary for a ray based point picking system and probably for a collision system. It can also be useful to highlight hovered objects with
pick
.The text was updated successfully, but these errors were encountered: