AusClimateService / plotting_maps

Standardising hazard maps for ACS
4 stars 1 forks source link

improve visuals #19

Closed xenct closed 1 month ago

xenct commented 1 month ago

Some small tweaks to enhance the beauty of the plots:

plotting_rainfall_anom_old

xenct commented 1 month ago

Example of new improved visuals.

plotting_rainfall_anom

stellema commented 1 month ago

Is it possible to increase the dataset font size? It would be really helpful for comparing multi-model ensembles.

xenct commented 1 month ago

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?

stellema commented 1 month ago

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: test_fs6

dataset and baseline fontsize=7: test_fs7

dataset and baseline fontsize=8: test_fs8