Closed xenct closed 1 month ago
Example of new improved visuals.
Is it possible to increase the dataset font size? It would be really helpful for comparing multi-model ensembles.
Hi @stellema , the plots can be made at a smaller figsize while keeping the text size the same (therefore the text size is proportionally larger). Would this address your query?
Yes, that helps. I've just been getting feedback that it doesn't stand out enough. For reference, here is an example of how it might look with a 1-2 size increase (I also increased the baseline
font size for consistency).
import numpy as np
from acs_plotting_maps import plot_acs_hazard, regions_dict, cmap_dict
da = xr.DataArray(
np.random.uniform(20, 65, (50, 60)),
dims=["lat", "lon"],
coords={"lat": np.arange(-45, 5), "lon": np.arange(110, 170)},
)
fs = 8
fig, ax = plot_acs_hazard(
name="aus_states_territories",
regions=regions_dict["aus_states_territories"],
data=da,
figsize=(8 * 0.8, 6 * 0.8),
title=f"Dataset fontsize={fs}",
date_range="1 July 1963 to 30 June 2028",
cmap=cmap_dict["tasmax"],
cbar_extend="neither",
ticks=np.arange(20, 65, 5),
tick_labels=None,
cbar_label="Temperature [°C]",
dataset_name="dataset",
baseline="1963-2028",
outfile=f"test_fs{fs}.png",
mask_not_australia=True,
xlim=(110, 170),
ylim=(-45, -5),
label_states=False,
contourf=False,
contour=False,
select_area=None,
land_shadow=True,
)
dataset and baseline fontsize=6:
dataset and baseline fontsize=7:
dataset and baseline fontsize=8:
Some small tweaks to enhance the beauty of the plots: