Я пытаюсь построить метки широты и долготы x и y (не линии на графике) на моем графике, который показан ниже, и я не могу найти, как их включить. Моя переменная для построения графиков, которая является массивом данных "stdna", приведена ниже:
stdna
Out[280]:
<xarray.DataArray 'Standardized SLP Anomaly' (variable: 1, month: 1, lat: 73, lon: 144)>
dask.array<stack, shape=(1, 1, 73, 144), dtype=float32, chunksize=(1, 1, 73, 144),
chunktype=numpy.ndarray>
Coordinates:
* lon (lon) float32 0.0 2.5 5.0 7.5 10.0 ... 350.0 352.5 355.0 357.5
* lat (lat) float32 90.0 87.5 85.0 82.5 80.0 ... -82.5 -85.0 -87.5 -90.0
* month (month) int64 1
* variable (variable) <U3 'slp'
Вот изображение выше ![SLP Standardized Anomaly](https://i.stack.imgur.com/q5c04.png)
Код, используемый для создания только изображения выше, и аргумент add_labels, кажется, не добавляет метки к графику:
# Define an axes object with a projection
ax = plt.axes(projection=ccrs.PlateCarree())
# Plot the coastline
ax.coastlines(lw=1)
stdnasq = stdna.squeeze().plot.contourf(levels=12,add_labels=True)
ax.set_xlabel('')
plt.show()