Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix AttributeError: module 'matplotlib.colors' has no attribute 'normalize' #337

Merged
merged 1 commit into from
Feb 2, 2017

Conversation

cgohlke
Copy link
Contributor

@cgohlke cgohlke commented Feb 2, 2017

Using matplotlib 2.0:

Running plotmap_masked.py
Traceback (most recent call last):
  File "D:\Build\basemap\basemap-git\examples\plotmap_masked.py", line 43, in <module>
    im = m.imshow(topodatm,palette,norm=colors.normalize(vmin=0.0,vmax=3000.0,clip=False))
AttributeError: module 'matplotlib.colors' has no attribute 'normalize'
TEST FAILURE (status=1)

See also http://matplotlib.org/api/colors_api.html#matplotlib.colors.Normalize

@WeatherGod
Copy link
Member

how come we didn't notice this before?

@WeatherGod
Copy link
Member

Found it... it was deprecated in v1.3 of matplotlib and finally removed.

@WeatherGod WeatherGod merged commit 6c74921 into matplotlib:master Feb 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants