No need to make a new figure if one already exists

This commit is contained in:
Kelsey Jordahl committed 2013-07-10 11:00:33 +05:30
1 parent 74d4efcc56
commit b4348400f1
1 file changed
+1 -1
+1 -1
View File
@@ -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)