You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current GeoMakie (as of ClimaAnalysis v0.5.10) colorbar waste a lot of space.
Placing the colorbar horizontally below the globe map would save a lot of space, as well as reducing space between the map and the colorbar.
MWE:
using GeoMakie
using CairoMakie
fig = Figure(size = (800, 500))
ga = GeoAxis(
fig[1, 1]; # any cell of the figure's layout
dest = "+proj=wintri", # the CRS in which you want to plot
)
lines!(ga, GeoMakie.coastlines()) # plot coastlines from Natural Earth as a reference
scatter!(ga, -120:15:120, -60:7.5:60; color = -60:7.5:60, strokecolor = (:black, 0.2))
b = Colorbar(fig[2,1],
vertical = false,
width = Relative(0.75),
label = L"\text{GPP} \, (\mu\text{mol m}^{-2} \, \text{s}^{-1})")
save("fig.png", fig)
key elements in MWE are vertical = false, and width = Relative(0.75),
Note that the default padding (white space betwwen plot and edges, or between map and colorbar) is still very large, reducing it would be amazing.
The text was updated successfully, but these errors were encountered:
I am fine, but I would like to see a ClimaCoupler bias/leaderboard plot before merging this.
Let me point out that the plotting functions in ClimaAnalysis are probably not the best tool for publication-grade plots (they have to be general enough to be good enough for most uses). In that case, when you want to have full control of the plot, you can use ClimaAnalysis to extract the data, but make the plot with your favorite tool (Makie, Python, LaTeX, ...).
It's okay to put low priority on this. I agree with your point about publication quality, this is more intended for most use - for example to make quick slides, or for the dashboard
Current GeoMakie (as of ClimaAnalysis v0.5.10) colorbar waste a lot of space.
Placing the colorbar horizontally below the globe map would save a lot of space, as well as reducing space between the map and the colorbar.
MWE:
key elements in MWE are
vertical = false,
andwidth = Relative(0.75),
Note that the default padding (white space betwwen plot and edges, or between map and colorbar) is still very large, reducing it would be amazing.
The text was updated successfully, but these errors were encountered: