Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
malmans2 committed Aug 14, 2023
1 parent ebd05e9 commit 3c9604b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions notebooks/wp5/WIP_ocean_color_reflectance.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -193,18 +193,17 @@
" for region, regionalise_kwargs in regions.items():\n",
" da_region = utils.regionalise(da_to_plot, **regionalise_kwargs)\n",
" for reduction, da_reduction in da_region.groupby(\"reduction\"):\n",
" title = f\"{reduction} {region} {year_start}-{year_stop}\"\n",
" if \"year\" in da_to_plot.dims:\n",
" title += \" yearly\"\n",
" plot.projected_map(\n",
" da_reduction,\n",
" col=\"year\" if \"year\" in da_to_plot.dims else None,\n",
" robust=True,\n",
" show_stats=False,\n",
" )\n",
" plt.suptitle(title.title()) if \"year\" in da_to_plot.dims else plt.title(\n",
" title.title()\n",
" )\n",
" title = [reduction, region, f\"{year_start}-{year_stop}\"]\n",
" if \"year\" in da_to_plot.dims:\n",
" title.append(\"yearly\")\n",
" title = \" \".join(title).title()\n",
" plt.suptitle(title) if \"year\" in da_to_plot.dims else plt.title(title)\n",
" plt.savefig(title.replace(\" \", \"_\").lower() + \".png\")\n",
" plt.show()"
]
Expand Down

0 comments on commit 3c9604b

Please sign in to comment.