Skip to content

Basemap uses deprecated methods #7808

@perimosocordiae

Description

@perimosocordiae

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions