geocat.viz.util.add_lat_lon_ticklabels#
- geocat.viz.util.add_lat_lon_ticklabels(ax, zero_direction_label=False, dateline_direction_label=False)#
Utility function to make plots look like NCL plots by adding latitude, longitude tick labels.
- Parameters:
ax (
matplotlib.axes.Axes
,cartopy.mpl.geoaxes.GeoAxesSubplot
) – Current axes to the current figurezero_direction_label (
bool
) – Set True to get 0 E / O W or False to get 0 only.dateline_direction_label (
bool
) – Set True to get 180 E / 180 W or False to get 180 only.
Examples
See this example notebook: add_lat_lon_ticklabels.
More in-depth plotting examples that utilize this function are in the GeoCAT-Examples Gallery. To see more usage cases, search the function on the website.