Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
malmans2 committed Nov 15, 2023
1 parent 5f4963e commit 2ddb893
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions notebooks/wp5/greenland_ice_velocity.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@
"metadata": {},
"outputs": [],
"source": [
"ds_to_plot = ds.isel(period=-1).copy()\n",
"ds_to_plot = ds.isel(period=-1)\n",
"\n",
"names = [\"land_ice_surface_stddev\", \"land_ice_surface_velocity_magnitude\"]\n",
"ds_to_plot = ds_to_plot[names].stack(xy=(\"x\", \"y\"))\n",
Expand All @@ -328,7 +328,7 @@
" markersize=5,\n",
")\n",
"for axis, name in zip((\"x\", \"y\"), names):\n",
" ds = ds[name]\n",
" da = ds[name]\n",
" label = f\"{da.attrs['long_name']} [{da.attrs['units']}]\"\n",
" getattr(ax, f\"set_{axis}label\")(label)\n",
" getattr(ax, f\"set_{axis}scale\")(\"log\")\n",
Expand Down

0 comments on commit 2ddb893

Please sign in to comment.