From 4e2c8343e58ff78642e8ecedee6f70840bda7a9e Mon Sep 17 00:00:00 2001 From: Martin Fleischmann Date: Sat, 21 Aug 2021 08:19:24 +0100 Subject: [PATCH] BUG: fix colorbar issue under matplotlib 3.4.3 (#2066) --- geopandas/plotting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geopandas/plotting.py b/geopandas/plotting.py index 19debb5..1582b2c 100644 --- a/geopandas/plotting.py +++ b/geopandas/plotting.py @@ -906,7 +906,7 @@ GON (((-122.84000 49.00000, -120.0000... else: legend_kwds.setdefault("ax", ax) - n_cmap.set_array([]) + n_cmap.set_array(np.array([])) ax.get_figure().colorbar(n_cmap, **legend_kwds) plt.draw()