From 76a79c7da8971d658671fda0cdaaef2fd80ec126 Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Fri, 30 Oct 2015 20:41:30 +0100 Subject: [PATCH] Fix test after colormap->cmap change --- tests/test_plotting.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_plotting.py b/tests/test_plotting.py index fcd618d..4863c27 100644 --- a/tests/test_plotting.py +++ b/tests/test_plotting.py @@ -145,18 +145,18 @@ class TestPointPlotting(unittest.TestCase): ## without specifying values -> max 9 different colors # GeoSeries - ax = self.points.plot(colormap='RdYlGn') + ax = self.points.plot(cmap='RdYlGn') cmap = get_cmap('RdYlGn', 9) expected_colors = cmap(list(range(9))*2) _check_colors(ax.get_lines(), expected_colors) # GeoDataFrame -> same as GeoSeries in this case - ax = self.df.plot(colormap='RdYlGn') + ax = self.df.plot(cmap='RdYlGn') _check_colors(ax.get_lines(), expected_colors) ## with specifying values - ax = self.df.plot(column='values', colormap='RdYlGn') + ax = self.df.plot(column='values', cmap='RdYlGn') cmap = get_cmap('RdYlGn') expected_colors = cmap(np.arange(self.N)/(self.N-1))