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

AttributeError: 'Axes' object has no attribute 'get_axis_bgcolor' #395

Closed
sebhahn opened this issue Apr 13, 2018 · 5 comments
Closed

AttributeError: 'Axes' object has no attribute 'get_axis_bgcolor' #395

sebhahn opened this issue Apr 13, 2018 · 5 comments

Comments

@sebhahn
Copy link

sebhahn commented Apr 13, 2018

Since matplotlib 2.2.0 the API has changed:

The Axes.get_axis_bgcolor, Axes.set_axis_bgcolor, Bbox.update_from_data, box.update_datalim_numerix, MaxNLocator.bin_boundaries methods have been removed.

and basemap throws the exception:

AttributeError: 'Axes' object has no attribute 'get_axis_bgcolor'

Is it possible to fix this easily?

@efiring
Copy link
Member

efiring commented Apr 14, 2018

I think it is already fixed; the only references to 'get_axis_bgcolor' that I find are protected by a check of the matplotlib version. What version of basemap are you using?

@sebhahn
Copy link
Author

sebhahn commented Apr 14, 2018

I'm using basemap 1.0.7, which comes with conda install basemap, but I just saw that conda forge holds version 1.1.0, I guess that's the one you refer to

@efiring
Copy link
Member

efiring commented Apr 15, 2018

Yes, that's the one to use.

@efiring efiring closed this as completed Apr 15, 2018
@ocefpaf
Copy link
Contributor

ocefpaf commented Apr 15, 2018

@sebhahn note that in conda-forge we have separate packages for basemap and the bundle high resolution data. If you need both you can install them with:

conda install --channel conda-forge basemap basemap-data-hires

If you do not need the extra 100 MB of high resolution data you can just install basemap.

@sebhahn
Copy link
Author

sebhahn commented Apr 15, 2018

Thanks everybody!

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

No branches or pull requests

3 participants