Skip to content

Commit

Permalink
update figure size
Browse files Browse the repository at this point in the history
  • Loading branch information
philipc2 committed Nov 30, 2023
1 parent bbd5138 commit 0ae80ef
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions notebooks/03-uxarray-vis/03-polygons.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@
"execution_count": null,
"outputs": [],
"source": [
"uxds_mpas[\"bottomDepth\"].plot.polygons()"
"uxds_mpas[\"bottomDepth\"].plot.polygons(width=900, height=400)"
],
"metadata": {
"collapsed": false
Expand All @@ -205,7 +205,9 @@
"execution_count": null,
"outputs": [],
"source": [
"uxds_geoflow[\"v1\"].nodal_average()[0][0].plot.polygons(cmap=\"coolwarm\")"
"uxds_geoflow[\"v1\"].nodal_average()[0][0].plot.polygons(\n",
" cmap=\"coolwarm\", width=900, height=400\n",
")"
],
"metadata": {
"collapsed": false
Expand All @@ -225,7 +227,7 @@
"execution_count": null,
"outputs": [],
"source": [
"uxds_mpas[\"bottomDepth\"].plot.rasterize(method=\"polygon\")"
"uxds_mpas[\"bottomDepth\"].plot.rasterize(method=\"polygon\", width=900, height=400)"
],
"metadata": {
"collapsed": false
Expand All @@ -237,7 +239,7 @@
"outputs": [],
"source": [
"uxds_geoflow[\"v1\"].nodal_average()[0][0].plot.rasterize(\n",
" method=\"polygon\", cmap=\"coolwarm\"\n",
" method=\"polygon\", cmap=\"coolwarm\", width=900, height=400\n",
")"
],
"metadata": {
Expand Down Expand Up @@ -276,12 +278,20 @@
" uxds_geoflow[\"v1\"]\n",
" .nodal_average()[0][0]\n",
" .plot.polygons(\n",
" exclude_antimeridian=False, cmap=\"coolwarm\", title=\"With Antimeridian Faces\"\n",
" exclude_antimeridian=False,\n",
" cmap=\"coolwarm\",\n",
" title=\"With Antimeridian Faces\",\n",
" width=900,\n",
" height=400,\n",
" )\n",
" + uxds_geoflow[\"v1\"]\n",
" .nodal_average()[0][0]\n",
" .plot.polygons(\n",
" exclude_antimeridian=True, cmap=\"coolwarm\", title=\"Without Antimeridian Faces\"\n",
" exclude_antimeridian=True,\n",
" cmap=\"coolwarm\",\n",
" title=\"Without Antimeridian Faces\",\n",
" width=900,\n",
" height=400,\n",
" )\n",
").cols(1)"
],
Expand Down

0 comments on commit 0ae80ef

Please sign in to comment.