Skip to content

Commit 6c74921

Browse files
authored
Merge pull request #337 from cgohlke/patch-1
Fix AttributeError: module 'matplotlib.colors' has no attribute 'normalize'
2 parents 87a35c5 + 4f8a237 commit 6c74921

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/plotmap_masked.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
palette = plt.cm.YlOrRd
4141
palette.set_bad('aqua', 1.0)
4242
# plot image over map with imshow.
43-
im = m.imshow(topodatm,palette,norm=colors.normalize(vmin=0.0,vmax=3000.0,clip=False))
43+
im = m.imshow(topodatm,palette,norm=colors.Normalize(vmin=0.0,vmax=3000.0,clip=False))
4444
m.colorbar(im,pad='12%') # draw colorbar
4545
# plot blue dot on boulder, colorado and label it as such.
4646
xpt,ypt = m(-104.237,40.125)

0 commit comments

Comments
 (0)