Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 16 additions & 12 deletions docs/examples/visualization/3_75km_mpas.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -520,12 +520,13 @@
"source": [

@erogluorhan erogluorhan Nov 10, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line #9.        height=500,

Realized this after approving the PR that neither of the height or width is equal to the previously used fig_size value of. 250. That was the case for the first plot above that you made, i.e. height == 400 == fig_size.


Reply via ReviewNB

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checking on /glade and refreshing figures needed. Feel free to push.

"projection = projection = ccrs.Robinson()\n",
"\n",
"uxds[\"relhum_200hPa\"][0].plot.rasterize(\n",
" method=\"point\",\n",
"uxds[\"relhum_200hPa\"][0].plot.points(\n",
" rasterize=True,\n",
" projection=projection,\n",
" backend=\"matplotlib\",\n",
" pixel_ratio=8.0,\n",
" fig_size=400,\n",
" width=800,\n",
" height=400,\n",
") * features(projection)"
]
},
Expand Down Expand Up @@ -557,12 +558,13 @@
"source": [
"projection = ccrs.Orthographic(central_latitude=90)\n",
"\n",
"uxds[\"relhum_200hPa\"][0].plot.rasterize(\n",
" method=\"point\",\n",
"uxds[\"relhum_200hPa\"][0].plot.points(\n",
" rasterize=True,\n",
" projection=projection,\n",
" backend=\"matplotlib\",\n",
" pixel_ratio=8.0,\n",
" fig_size=250,\n",
" width=500,\n",
" height=500,\n",
") * features(projection)"
]
},
Expand Down Expand Up @@ -1003,12 +1005,13 @@
"source": [
"projection = ccrs.Robinson()\n",
"\n",
"uxds[\"vorticity_200hPa\"][0].plot.rasterize(\n",
" method=\"point\",\n",
"uxds[\"vorticity_200hPa\"][0].plot.points(\n",
" rasterize=True,\n",
" projection=projection,\n",
" backend=\"matplotlib\",\n",
" pixel_ratio=8.0,\n",
" fig_size=400,\n",
" width=800,\n",
" height=400,\n",
" cmap=\"RdBu\",\n",
" clim=(-0.0003, 0.0003),\n",
") * features(projection)"
Expand Down Expand Up @@ -1042,12 +1045,13 @@
"source": [
"projection = ccrs.Orthographic(central_latitude=90)\n",
"\n",
"uxds[\"vorticity_200hPa\"][0].plot.rasterize(\n",
" method=\"point\",\n",
"uxds[\"vorticity_200hPa\"][0].plot.points(\n",
" rasterize=True,\n",
" projection=projection,\n",
" backend=\"matplotlib\",\n",
" pixel_ratio=8.0,\n",
" fig_size=250,\n",
" width=500,\n",
" height=500,\n",
" cmap=\"RdBu\",\n",
" clim=(-0.0003, 0.0003),\n",
") * features(projection)"
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/visualization/e3sm-load-viz.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"id": "91b118aa-5005-45da-a7f2-6d2d9e2f9f00",
"metadata": {},
"source": [
"This notebook showcases the Department of Energy (DOE)'s global climate model - the [Energy Exascale Earth System Model (E3SM)](https://e3sm.org/)'s output, that is on an unstructured grid, with the use of UXarray's plotting functions, including the basic `.plot()`, `.rasterize()`, and projections. \n",
"This notebook showcases the Department of Energy (DOE)'s global climate model - the [Energy Exascale Earth System Model (E3SM)](https://e3sm.org/)'s output, that is on an unstructured grid, with the use of UXarray's plotting functions, including the basic `.plot()`, the `rasterize=True` option, and projections. \n",
"\n",
"- E3SM Grid (ne30pg2)\n",
" \n",
Expand Down
2 changes: 1 addition & 1 deletion docs/user-guide/plotting.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
"source": [
"### Polygons\n",
"\n",
"Face centered data can be visualized as polygons using the ``UxDataArray.polygons()`` method. The geometry of each face is represented as a polygon, shaded with the data variable mapped to it."
"Face centered data can be visualized as polygons using the ``UxDataArray.plot.polygons()`` method. The geometry of each face is represented as a polygon, shaded with the data variable mapped to it."
]
},
{
Expand Down
Loading