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

Basemap uses deprecated methods #7808

Closed
perimosocordiae opened this Issue Jan 12, 2017 · 11 comments

Comments

Projects
None yet
7 participants
@perimosocordiae
Copy link
Contributor

perimosocordiae commented Jan 12, 2017

I'm not sure who maintains basemap, or where the development takes place, but hopefully this gets routed to someone who knows.

With the current master branch of matplotlib and a fresh install of basemap-1.0.7, I trigger the following deprecation warnings:

from mpl_toolkits.basemap import Basemap
m = Basemap()

m.fillcontinents()
#/usr/local/lib/python2.7/dist-packages/mpl_toolkits/basemap/__init__.py:1767: MatplotlibDeprecationWarning: The get_axis_bgcolor function was deprecated in version 2.0. Use get_facecolor instead.
#  axisbgc = ax.get_axis_bgcolor()

m.scatter([1,2], [3,4])
#/usr/local/lib/python2.7/dist-packages/mpl_toolkits/basemap/__init__.py:3222: MatplotlibDeprecationWarning: The ishold function was deprecated in version 2.0.
#  b = ax.ishold()
#/usr/local/lib/python2.7/dist-packages/mpl_toolkits/basemap/__init__.py:3231: MatplotlibDeprecationWarning: axes.hold is deprecated.
#    See the API Changes document (http://matplotlib.org/api/api_changes.html)
#    for more details.
#  ax.hold(b)
@efiring

This comment has been minimized.

Copy link
Member

efiring commented Jan 12, 2017

hold has been taken care of, but not get_axis_bgcolor, so thanks for the report. I will open an issue on the basemap tracker, so this one can be closed.

@efiring efiring closed this Jan 12, 2017

@efiring

This comment has been minimized.

Copy link
Member

efiring commented Jan 12, 2017

Correction: get_axis_bgcolor is also being handled in basemap master, so I think all we need is a release to go with mpl v2.0.

@WeatherGod

This comment has been minimized.

Copy link
Member

WeatherGod commented Jan 12, 2017

@roxyboy

This comment has been minimized.

Copy link

roxyboy commented Sep 26, 2017

Has this fix already been released?

@WeatherGod

This comment has been minimized.

Copy link
Member

WeatherGod commented Sep 26, 2017

@manojkken

This comment has been minimized.

Copy link

manojkken commented Oct 29, 2017

Any idea when this can be released?

@naught101

This comment has been minimized.

Copy link

naught101 commented Nov 20, 2017

You can use it now with conda install -c conda-forge basemap.

Basemap bugtracker is at https://github.com/matplotlib/basemap/issues

@gpetty

This comment has been minimized.

Copy link

gpetty commented Sep 26, 2018

Almost a year later, 'conda install basemap' still installs v1.0.7, which still throws an error when it tries to access ax.get_axis_bgcolor in matplotlib. Why hasn't v1.1.0 propagated to Anaconda yet?

@WeatherGod

This comment has been minimized.

Copy link
Member

WeatherGod commented Sep 26, 2018

@efiring

This comment has been minimized.

Copy link
Member

efiring commented Sep 26, 2018

Ben, the problem is that even v1.1.0 fails on mpl 3.0, so a new release is needed. conda-forge will automatically update their package when a release is tagged. (ref. matplotlib/basemap#424)

@WeatherGod

This comment has been minimized.

Copy link
Member

WeatherGod commented Sep 26, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment