Skip to content
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 precompile by removing src attr from plot constructor #245

Merged
merged 7 commits into from
Jul 17, 2024

Conversation

SimonDanisch
Copy link
Member

No description provided.

Comment on lines +832 to +849
function Makie.MakieCore._create_plot!(F, attributes::Dict, ax::GeoAxis, args...)
source = pop!(attributes, :source, nothing)
dest = pop!(attributes, :dest, nothing)
plot = Plot{Makie.default_plot_func(F, args)}(args, attributes)
isnothing(source) || (plot.kw[:source] = source)
isnothing(dest) || (plot.kw[:dest] = dest)
Makie.plot!(ax, plot)
return plot
end

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect, thanks!! I wasn't sure exactly where to inject this but this looks great.

@asinghvi17
Copy link
Member

Will test this locally then merge.

@asinghvi17
Copy link
Member

It looks like this doesn't address plot (as opposed to plot!, which works beautifully).

I guess you can't dispatch on create_plot, since it wouldn't have any arguments to dispatch on. Maybe we could refactor create_plot to create the Axis and then call create_plot!?

@SimonDanisch
Copy link
Member Author

You can't currently do plot(...) to get a geo axis, can you?

@asinghvi17
Copy link
Member

asinghvi17 commented Jun 18, 2024

plot(...; axis = (; type = GeoAxis, ...)) works (on master with the eval hack) and is shown in the docs. You may not want to set source in the axis settings because that sets the source CRS for every subsequent plot.

@asinghvi17 asinghvi17 force-pushed the sd/fix-precompile branch from 9eb0aea to c8e6f77 Compare July 7, 2024 21:06
@asinghvi17
Copy link
Member

Ugh, I don't understand this - Github is somehow deleting the logs of the actions.

@asinghvi17
Copy link
Member

CI ran on the last commit, now to find which example was killing it...

Decrease the number of examples to try and get the docs to build

remove more examples -- what is going on?

Revert "remove more examples -- what is going on?"

This reverts commit f584cca.

Inform when we are doing something

refactor geomakiedocumenterblocks to be really generic
comment out certain examples

clean up
* Use OhMyCards

* Add more examples

* Fix CI

* Fix the make script

* Remove GeoMakieDocumenterBlocks

* Expand all examples first

* fix expandfirst

* Add more examples back

* Don't build `multiple_crs`
@asinghvi17 asinghvi17 merged commit 3a5f3e0 into master Jul 17, 2024
2 checks passed
@asinghvi17 asinghvi17 deleted the sd/fix-precompile branch July 17, 2024 05:33
@asinghvi17 asinghvi17 mentioned this pull request Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants