mplotutils icon indicating copy to clipboard operation
mplotutils copied to clipboard

wrong x-ticks for +/- 180°

Open mathause opened this issue 3 years ago • 0 comments

I think the problem is that it is just at the edge of the plot.

import numpy as np
import mplotutils as mpu
import cartopy.feature as cfeature
import cartopy.crs as ccrs
import matplotlib.pyplot as plt

%matplotlib

f, ax = plt.subplots(1, 1, subplot_kw=dict(projection=ccrs.Robinson(central_longitude=180)))

#ax.coastlines()

ax.set_global()

lat = np.arange(-90, 91, 20)
lon = np.arange(-180, 181, 60)

mpu.xticklabels(lon, ax=ax, size=8)

test

mathause avatar Jan 06 '23 20:01 mathause