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
fix error bar range in recipes #3179
Conversation
Rather than reverting this change we should probably have a custom Makie.jl/src/basic_recipes/bracket.jl Lines 119 to 121 in a4af178
and figure out a clean way to ignore non data space limits in Axis later, maybe as part of #3040. |
@ffreyer there's already a custom data_limits Makie.jl/src/basic_recipes/error_and_rangebars.jl Lines 282 to 285 in a4af178
but I don't know enough to know how to update it to fix this problem |
Huh, why doesn't that work then? Is that not getting called when updating limits? |
Oh ok, the problem comes from Makie.jl/src/layouting/data_limits.jl Lines 170 to 172 in a4af178
which goes into Makie.jl/src/layouting/data_limits.jl Lines 136 to 144 in a4af178
and further into Makie.jl/src/layouting/data_limits.jl Line 76 in a4af178
skipping the custom data_limits .
So if we swap out the function point_iterator(bars::Union{Errorbars, Rangebars})
point_iterator(bars.plots[1])
end we should be good. If that works could you skim through the other plot recipes in |
The only other use in Makie.jl/src/basic_recipes/axis.jl Lines 346 to 348 in a4af178
In Lines 65 to 75 in a4af178
Let me know if I should change either or both of those to be |
|
I wonder if this makes sense function iterate_transformed(plot)
points = point_iterator(plot)
t = transformation(plot)
model = model_transform(t)
# TODO: without this, axes with log scales error. Why?
trans_func = identity # transform_func(t)
# trans_func = identity
iterate_transformed(points, model, to_value(get(plot, :space, :data)), trans_func)
end Because the transformation / model of a parent plot doesn't affect its children directly, does it? But we seem to want to transform by it (although not really as Maybe this one function data_limits(plot::AbstractPlot)
limits_from_transformed_points(iterate_transformed(plot))
end needs to be rewritten so that it just combines the limits of its children, and doesn't iterate directly over them. |
I'm ok with that |
Thank you! |
Description
Fixes #3176
Moves to data space instead of pixel space.
Type of change
Delete options that do not apply:
Checklist
Added or changed relevant sections in the documentationAdded unit tests for new algorithms, conversion methods, etc.Added reference image tests for new plotting functions, recipes, visual options, etc.