Closed gepcel closed 1 year ago
This is not possible with any format
keywords yet, but you can do this by manually updating the cartopy gridliner controlled by proplot as shown below.
Note in the latest stable release, this requires accessing the private attribute ax._gridlines_major
, but in the next release / in the "dev" version (install with pip install git+https://github.com/proplot-dev/proplot
), this can be done using a public, documented property ax.gridlines_major
that points to ax._gridlines_major
.
import proplot as pplt
fig, axs = pplt.subplots(proj='cyl')
ax = axs[0]
ax._gridlines_major.ylabel_style.update({'rotation': 90})
ax.format(lonlim=[10.1, 10.13],latlim=[30.1,30.13], lonlines=0.01, latlines=0.015,labels=True,)
Thank you. This is what I want. I'll close this.
In the following example, I want to rotate the lat ticklabels by 90°, How can I do that?
Steps to do in matplotlib: