mirror of
https://github.com/wassname/geopandas.git
synced 2026-10-02 12:20:37 +08:00
No need to make a new figure if one already exists
This commit is contained in:
1 parent
74d4efcc56
commit
b4348400f1
1 file changed
+1
-1
@@ -48,7 +48,7 @@ def gencolor(N, colormap='Set1'):
|
||||
yield colors[i % n_colors]
|
||||
|
||||
def plot_series(s, colormap='Set1'):
|
||||
fig = plt.figure()
|
||||
fig = plt.gcf()
|
||||
fig.add_subplot(111, aspect='equal')
|
||||
ax = plt.gca()
|
||||
color = gencolor(len(s), colormap=colormap)
|
||||
|
||||
Reference in new issue
Block a user