Skip to content

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.

2 participants