From 57324cfe9f9ff9db672eea337d2c0ca6b5e569b1 Mon Sep 17 00:00:00 2001 From: Dani Arribas-Bel Date: Fri, 9 Oct 2015 22:52:21 +0100 Subject: [PATCH] Adapting tests --- tests/test_plotting.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_plotting.py b/tests/test_plotting.py index 96e47aa..5e7e5b3 100644 --- a/tests/test_plotting.py +++ b/tests/test_plotting.py @@ -103,7 +103,7 @@ class PlotTests(unittest.TestCase): df = GeoDataFrame({'geometry': polys, 'values': values}) # Plot the GeoDataFrame using various keyword arguments to see if they are honoured - ax = df.plot(column='values', colormap=cm.RdBu, vmin=+2, vmax=None, figsize=(8, 4)) + ax = df.plot(column='values', cmap=cm.RdBu, vmin=+2, vmax=None, figsize=(8, 4)) self._compare_images(ax=ax, filename=filename) @@ -121,7 +121,7 @@ class TestPySALPlotting(unittest.TestCase): def test_legend(self): ax = self.tracts.plot(column='CRIME', scheme='QUANTILES', k=3, - colormap='OrRd', legend=True) + cmap='OrRd', legend=True) labels = [t.get_text() for t in ax.get_legend().get_texts()] expected = [u'0.00 - 26.07', u'26.07 - 41.97', u'41.97 - 68.89']