Skip to content

Expose +gamma for Oblique Mercator#2627

Open
epn09 wants to merge 1 commit intoSciTools:mainfrom
epn09:obliq_mer_gamma
Open

Expose +gamma for Oblique Mercator#2627
epn09 wants to merge 1 commit intoSciTools:mainfrom
epn09:obliq_mer_gamma

Conversation

@epn09
Copy link

@epn09 epn09 commented Feb 3, 2026

Rationale

Implications

  • It will be possible to make a rotated map like the example below.
import cartopy.crs as ccrs
import matplotlib.pyplot as plt

japan_extent = [128, 146, 24, 46]
fig = plt.figure(figsize=(8, 8), layout="constrained")

ax1 = fig.add_subplot(
    1,
    2,
    1,
    projection=ccrs.ObliqueMercator(
        central_latitude=35, central_longitude=137, azimuth=40
    ),
)
ax1.coastlines()
ax1.gridlines(draw_labels=True)
ax1.set_extent(japan_extent, crs=ccrs.PlateCarree())

ax2 = fig.add_subplot(
    1,
    2,
    2,
    projection=ccrs.ObliqueMercator(
        central_latitude=35, central_longitude=137, azimuth=40, gamma=0
    ),
)
ax2.coastlines()
ax2.gridlines(draw_labels=True)
ax2.set_extent(japan_extent, crs=ccrs.PlateCarree())

plt.show()
image

@CLAassistant
Copy link

CLAassistant commented Feb 3, 2026

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants