-
-
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
Fix CairoMakie erroring when recipes return lists of PlotSpec #3612
Conversation
Compile Times benchmarkNote, that these numbers may fluctuate on the CI servers, so take them with a grain of salt. All benchmark results are based on the mean time and negative percent mean faster than the base branch. Note, that GLMakie + WGLMakie run on an emulated GPU, so the runtime benchmark is much slower. Results are from running: using_time = @ctime using Backend
# Compile time
create_time = @ctime fig = scatter(1:4; color=1:4, colormap=:turbo, markersize=20, visible=true)
display_time = @ctime Makie.colorbuffer(display(fig))
# Runtime
create_time = @benchmark fig = scatter(1:4; color=1:4, colormap=:turbo, markersize=20, visible=true)
display_time = @benchmark Makie.colorbuffer(fig)
|
Hey, just want to bump this - would be nice to get it out there! |
On master the test case you added works for me. struct PlotlistTestType end
function Makie.convert_arguments(::Type{<: Makie.Plot}, obj::PlotlistTestType)
return [
Makie.SpecApi.Lines([0, 1], [0, 1]),
Makie.SpecApi.Scatter([0.5], [0.5]),
]
end
plot(PlotlistTestType()) Or was there a good reason to define |
Huh! Yeah I just tested with latest master and this was not an issue there...maybe my local env was misconfigured? Will add the test you suggested at a later point. About the |
Description
CairoMakie suffered from a method ambiguity when a
convert_arguments
returned a list of plotspecs using the new SpecApi. This PR eliminates that method ambiguity and adds a reference test for it, so we know that all backends support plotlists!I will probably need some help updating the reference images though!
Type of change
Delete options that do not apply:
Checklist