mirror of
https://github.com/wassname/geopandas.git
synced 2026-09-21 13:00:14 +08:00
BUG: fix colorbar issue under matplotlib 3.4.3 (#2066)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user