Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
malmans2 committed Feb 7, 2024
1 parent a054b0c commit 15a52f3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions notebooks/wp3/WIP-hit_rate.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -408,9 +408,8 @@
"def plot_mask(da, **kwargs):\n",
" cmap = kwargs.pop(\"cmap\", \"RdYlBu_r\")\n",
" kwargs[\"cmap\"] = plt.get_cmap(cmap, 3)\n",
" cbar_kwargs = {\"ticks\": [-1, 0, 1]}\n",
" cbar_kwargs = {\"ticks\": [-0.75, 0, 0.75]}\n",
"\n",
" da[\"valid_month\"] = da[\"valid_month\"].astype(str)\n",
" plot_obj = da.plot(cbar_kwargs=cbar_kwargs, **kwargs)\n",
"\n",
" cbar = (\n",
Expand Down Expand Up @@ -439,6 +438,8 @@
" ds_seasonal[variable].sel(region=region, centre=centre),\n",
" col=\"valid_year\",\n",
" col_wrap=5,\n",
" xticks=range(1, 13),\n",
" yticks=range(1, 13),\n",
")"
]
}
Expand Down

0 comments on commit 15a52f3

Please sign in to comment.