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

land global plots #190

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

land global plots #190

wants to merge 4 commits into from

Conversation

juliasloan25
Copy link
Member

@juliasloan25 juliasloan25 commented Feb 7, 2025

(not to be merged)

Notes

  • setting up colorbar kwards in ClimaLand and passing to viz.heatmap2D_on_globe! doesn't work
viz.heatmap2D_on_globe!(
                fig,
                ClimaAnalysis.slice(var, time = t; kwargs...),
                mask = viz.oceanmask(),
                more_kwargs = Dict(
                    :mask => ClimaAnalysis.Utils.kwargs(color = :white),
                    :plot => ClimaAnalysis.Utils.kwargs(rasterize = true),
                    :axis => ClimaAnalysis.Utils.kwargs(
                        title = CairoMakie.rich(title_stub, fontsize = 18), # title of the figure
                        xticklabelsvisible = false, # don't show lat labels
                        yticklabelsvisible = false, # don't show lon labels
                        xgridvisible = false, # don't show lat grid
                        ygridvisible = false, # don't show lon grid
                    ),
                    :cb => ClimaAnalysis.Utils.kwargs(
                        label = colorbar_labels[short_name],
                        vertical = false, # horizontal colorbar
                        flipaxis = false, # label underneath colorbar
                        width = 400, # a little smaller
                        tellwidth = false; # make colorbar width indep of plot width
                    ),
                ),
            )

To-do

Content


  • I have read and checked the items on the review checklist.

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.

1 participant