From 4f8a23760c569cb074e88d575fe57c599a8306d7 Mon Sep 17 00:00:00 2001 From: Christoph Gohlke Date: Wed, 1 Feb 2017 23:17:40 -0800 Subject: [PATCH] Fix AttributeError: module 'matplotlib.colors' has no attribute 'normalize' --- examples/plotmap_masked.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/plotmap_masked.py b/examples/plotmap_masked.py index a474e5842..52771638c 100644 --- a/examples/plotmap_masked.py +++ b/examples/plotmap_masked.py @@ -40,7 +40,7 @@ palette = plt.cm.YlOrRd palette.set_bad('aqua', 1.0) # plot image over map with imshow. -im = m.imshow(topodatm,palette,norm=colors.normalize(vmin=0.0,vmax=3000.0,clip=False)) +im = m.imshow(topodatm,palette,norm=colors.Normalize(vmin=0.0,vmax=3000.0,clip=False)) m.colorbar(im,pad='12%') # draw colorbar # plot blue dot on boulder, colorado and label it as such. xpt,ypt = m(-104.237,40.125)