-
-
Notifications
You must be signed in to change notification settings - Fork 315
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
[WIP] Improvements to PlotSpecs and the SpecAPI #3628
base: master
Are you sure you want to change the base?
Conversation
This doesn't allow post facto editing, but e.g. `plot(diffeq_solution; linewidth = 0.1)` will at least work.
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)
|
@@ -401,6 +401,13 @@ function to_plot_object(ps::PlotSpec) | |||
return P((ps.args...,), copy(ps.kwargs)) | |||
end | |||
|
|||
function to_plot_object(ps::PlotSpec, p::PlotList) | |||
P = plottype(ps) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What would people think if, knowing the default_theme
of P()::Plot
here, we populate the missing attributes with their default values as Observables in p::PlotList
, so that users can edit them post-facto and have them pass through like normal Observables?
Description
This is a WIP set of improvements/changes to the SpecAPI after some usage.
plot(diffeq_solution; linewidth = 0.1)
will at least work).More changes will come as I keep messing around with this stuff...
Type of change
Delete options that do not apply:
Checklist