From 75e5aa783c5830927034885983a8884e50361808 Mon Sep 17 00:00:00 2001 From: Mathias Hauser Date: Tue, 29 Sep 2026 14:08:09 +0200 Subject: [PATCH] cartopy: rename Lat/ Lon Formatter --- mplotutils/_cartopy_utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mplotutils/_cartopy_utils.py b/mplotutils/_cartopy_utils.py index 7084aae..d832185 100644 --- a/mplotutils/_cartopy_utils.py +++ b/mplotutils/_cartopy_utils.py @@ -4,7 +4,7 @@ import matplotlib.pyplot as plt import numpy as np import shapely.geometry -from cartopy.mpl.gridliner import LATITUDE_FORMATTER, LONGITUDE_FORMATTER +from cartopy.mpl.gridliner import LatitudeFormatter, LongitudeFormatter from mplotutils._colormaps import _get_label_attr @@ -335,7 +335,7 @@ def yticklabels( # loop through points for y in y_label_points: - msg = LATITUDE_FORMATTER(y) + msg = LatitudeFormatter(y) x = _determine_intersection(boundary_pc, [lonmin, y], [lonmax, y]) @@ -431,7 +431,7 @@ def xticklabels( # loop through points for x in x_label_points: - msg = LONGITUDE_FORMATTER(x) + msg = LongitudeFormatter(x) y = _determine_intersection(boundary_pc, [x, -90], [x, 90]) if y.size > 0: