Skip to content
Merged
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
8 changes: 5 additions & 3 deletions core/cartopy/cartopy.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,9 @@
"source": [
"Plotting data on a Cartesian grid is equivalent to plotting data in the PlateCarree projection, where meridians and parallels are all straight lines with constant spacing. As a result of this simplicity, the global datasets we use often begin in the PlateCarree projection.\n",
"\n",
"Once we create our map again, we can plot these data values as a contour map. We must also specify the `transform` keyword argument. This is an argument to a contour-plotting method that specifies the projection type currently used by our data. The projection type specified by this argument will be transformed into the projection type specified in the `subplot` method. Let's plot our data in the Mollweide projection to see how shapes change under a transformation."
"Once we create our map again, we can plot these data values as a contour map. We must also specify the `transform` keyword argument. This is an argument to a contour-plotting method that specifies the projection type currently used by our data. The projection type specified by this argument will be transformed into the projection type specified in the `subplot` method. \n",
"\n",
"Let's plot our data in the Equal Earth global projection {cite:p}`10.1080/13658816.2018.1504949` to see how shapes change under a transformation."
]
},
{
Expand All @@ -662,7 +664,7 @@
"outputs": [],
"source": [
"fig = plt.figure(figsize=(11, 8.5))\n",
"ax = plt.subplot(1, 1, 1, projection=projMoll)\n",
"ax = plt.subplot(1, 1, 1, projection=ccrs.EqualEarth())\n",
"ax.coastlines()\n",
"dataplot = ax.contourf(lon, lat, data, transform=ccrs.PlateCarree())\n",
"plt.colorbar(dataplot, orientation='horizontal');"
Expand Down Expand Up @@ -742,7 +744,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.14.3"
"version": "3.14.4"
}
},
"nbformat": 4,
Expand Down
Loading