-
-
Notifications
You must be signed in to change notification settings - Fork 317
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
Recipes do not work well with {h,v}span!()
or {h,v}lines!()
#3051
Comments
This is probably a problem with boundingbox/data_limits taking the size of the span into account, which then bumps the size of axis limits, which then cycles back to increasign the size of the span. Mixed coordinate spaces and #2881 should fix this eventually. Makie.jl/src/basic_recipes/bracket.jl Lines 119 to 121 in 83fc003
In this case you could just return the data_limits of the scatter plot for the recipe |
I tried to figure out how to do this, but I got stuck because
|
Yea, |
Hmm, but the data within the recipe object is an observable. How am I supposed to get the bounds of it? Call to_value()? |
That or just |
data_limits get called on demand, so one just extracts the values from the observables when implementing data_limits |
Fixed by #3681 in Makie 0.21 by allowing |
]activate --temp; add Makie
)Issue Description
Using the 2d projection types within a recipe seems to cause axis limit confusion. Here's some example code:
This results in a plot with a
vspan!()
going from 0 to 10, not 0 to 1 as the docs describe (and as you get if you do this plot outside of a recipe):As a bonus, CTRL-clicking to reset the zoom bounds gradually zooms out step by step, rather than resetting to a default good location.
The text was updated successfully, but these errors were encountered: