From b4348400f147ea7785a33c737bb697df6583544e Mon Sep 17 00:00:00 2001 From: Kelsey Jordahl Date: Tue, 9 Jul 2013 20:04:34 +0530 Subject: [PATCH] No need to make a new figure if one already exists --- geopandas/plotting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geopandas/plotting.py b/geopandas/plotting.py index ac5fd7f..f2bba47 100644 --- a/geopandas/plotting.py +++ b/geopandas/plotting.py @@ -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)