Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOC: add omerc to projections list #2146

Merged
merged 1 commit into from
Mar 12, 2023
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
23 changes: 20 additions & 3 deletions docs/source/reference/projections.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

.. _cartopy_projections:


Cartopy projection list
=======================

Expand Down Expand Up @@ -60,7 +59,7 @@ AzimuthalEquidistant
import matplotlib.pyplot as plt
import cartopy.crs as ccrs

plt.figure(figsize=(3, 3))
plt.figure(figsize=(3.0101, 3))
Copy link
Contributor

Choose a reason for hiding this comment

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

Where did this value come from? Seems like it was OK on the current docs: https://scitools.org.uk/cartopy/docs/latest/reference/projections.html#azimuthalequidistant

Same with the Orthographic update.

Copy link
Member Author

Choose a reason for hiding this comment

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

Struck me as kinda odd too.

I simply done a make projection and this is the automated change

Copy link
Member Author

Choose a reason for hiding this comment

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

Did you want me to revert that particular auto-change?

Copy link
Contributor

Choose a reason for hiding this comment

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

Ahh, the width is taken from the x_limits of each projection, so my guess is this has to do with PROJ updating some of their limits with a version bump at some point...

ax = plt.axes(projection=ccrs.AzimuthalEquidistant(
central_latitude=90))
ax.coastlines(resolution='110m')
Expand Down Expand Up @@ -163,6 +162,22 @@ Mollweide
ax.gridlines()


ObliqueMercator
---------------

.. autoclass:: cartopy.crs.ObliqueMercator

.. plot::

import matplotlib.pyplot as plt
import cartopy.crs as ccrs

plt.figure(figsize=(3.5091, 3))
ax = plt.axes(projection=ccrs.ObliqueMercator())
ax.coastlines(resolution='110m')
ax.gridlines()


Orthographic
------------

Expand Down Expand Up @@ -352,7 +367,7 @@ Geostationary
import matplotlib.pyplot as plt
import cartopy.crs as ccrs

plt.figure(figsize=(3, 3))
plt.figure(figsize=(3.0118, 3))
ax = plt.axes(projection=ccrs.Geostationary())
ax.coastlines(resolution='110m')
ax.gridlines()
Expand Down Expand Up @@ -600,3 +615,5 @@ SouthPolarStereo
ax = plt.axes(projection=ccrs.SouthPolarStereo())
ax.coastlines(resolution='110m')
ax.gridlines()