BUG: fix colorbar issue under matplotlib 3.4.3 (#2066)

This commit is contained in:
Martin Fleischmann
2021-08-21 09:19:24 +02:00
committed by GitHub
parent 4536b9203b
commit 4e2c8343e5
+1 -1
View File
@@ -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()