From ef394af7fe649dfa1ad2bfda991b23b736f92f26 Mon Sep 17 00:00:00 2001 From: Martin Fleischmann Date: Mon, 24 Oct 2022 08:48:57 +0200 Subject: [PATCH] COMPAT: fix matplotlib version required for new cmaps (#2611) --- geopandas/explore.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/geopandas/explore.py b/geopandas/explore.py index 75543f2..cec01b7 100644 --- a/geopandas/explore.py +++ b/geopandas/explore.py @@ -270,7 +270,7 @@ GON (((180.00000 -16.06713, 180.00000... if not n_resample: return cm.get_cmap(_cmap) else: - if MPL_36: + if MPL_361: return cm.get_cmap(_cmap).resampled(n_resample)(idx) else: return cm.get_cmap(_cmap, n_resample)(idx) @@ -284,8 +284,8 @@ GON (((180.00000 -16.06713, 180.00000... from mapclassify import classify # isolate MPL version - GH#2596 - MPL_36 = Version(matplotlib.__version__) >= Version("3.6") - if MPL_36: + MPL_361 = Version(matplotlib.__version__) >= Version("3.6.1") + if MPL_361: from matplotlib import colormaps as cm else: import matplotlib.cm as cm