From 1d6e6bda06684471d0d7ce7e527aa9b505435a39 Mon Sep 17 00:00:00 2001 From: Mattia Almansi Date: Fri, 21 Jul 2023 17:10:55 +0200 Subject: [PATCH] fix colorbar --- notebooks/wp4/clima_and_bias_cordex_cmip6_regionalised.ipynb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/notebooks/wp4/clima_and_bias_cordex_cmip6_regionalised.ipynb b/notebooks/wp4/clima_and_bias_cordex_cmip6_regionalised.ipynb index d663918..9348483 100644 --- a/notebooks/wp4/clima_and_bias_cordex_cmip6_regionalised.ipynb +++ b/notebooks/wp4/clima_and_bias_cordex_cmip6_regionalised.ipynb @@ -61,7 +61,7 @@ "assert variable in (\"precipitation\", \"temperature\")\n", "\n", "# Choose CORDEX or CMIP6\n", - "collection_id = \"CORDEX\"\n", + "collection_id = \"CMIP6\"\n", "assert collection_id in (\"CORDEX\", \"CMIP6\")\n", "\n", "# Define region for analysis\n", @@ -467,6 +467,8 @@ " robust=True,\n", " levels=11,\n", " cmap=\"bwr_r\" if variable == \"precipitation\" else \"bwr\",\n", + " center=0,\n", + " extend=\"both\",\n", ")\n", "plot_kwargs[\"projection\"] = projection\n", "plot.projected_map(\n",