Skip to content

Conversation

nbambruz
Copy link
Contributor

With the release of Matplotlib 2.1.0, Axes.axesPatch has been deprecated in favor of Axes.patch. Changes made are to basemap/__init__.py.

Specific error:

MatplotlibDeprecationWarning: The axesPatch function was deprecated in version 2.1. Use Axes.patch instead.

@WeatherGod
Copy link
Member

Can you rebase your branch against master, please? I just put in a fix for TravisCI.

@WeatherGod WeatherGod merged commit ef0f836 into matplotlib:master Oct 19, 2017
@WeatherGod
Copy link
Member

Thanks you!

@nbambruz nbambruz deleted the fixaxespatch branch October 19, 2017 22:43
karenc added a commit to WildMeOrg/wildbook-ia that referenced this pull request Jun 24, 2020
When running doctests:

```
DOCTEST TRACEBACK
Traceback (most recent call last):

  File "/virtualenv/env3/lib/python3.6/site-packages/xdoctest/doctest_example.py", line 553, in run
    exec(code, test_globals)

  File "<doctest:/wbia/wildbook-ia/wbia/plottool/nx_helpers.py::show_nx:0>", line rel: 15, abs: 124, in <module>
    >>> e = show_nx(graph, with_labels, fnum, pnum, layout='agraph')

  File "/wbia/wildbook-ia/wbia/plottool/nx_helpers.py", line 157, in show_nx
    ax.axesPatch.set_facecolor('white')

AttributeError: 'AxesSubplot' object has no attribute 'axesPatch'
DOCTEST REPRODUCTION
CommandLine:
    python -m xdoctest /wbia/wildbook-ia/wbia/plottool/nx_helpers.py show_nx:0
```

According to matplotlib/basemap#373:

> With the release of Matplotlib 2.1.0, Axes.axesPatch has been
> deprecated in favor of Axes.patch.

Changing `.axesPatch` to `.patch` fixed this error.
bluemellophone pushed a commit to WildMeOrg/wildbook-ia that referenced this pull request Jun 25, 2020
When running doctests:

```
DOCTEST TRACEBACK
Traceback (most recent call last):

  File "/virtualenv/env3/lib/python3.6/site-packages/xdoctest/doctest_example.py", line 553, in run
    exec(code, test_globals)

  File "<doctest:/wbia/wildbook-ia/wbia/plottool/nx_helpers.py::show_nx:0>", line rel: 15, abs: 124, in <module>
    >>> e = show_nx(graph, with_labels, fnum, pnum, layout='agraph')

  File "/wbia/wildbook-ia/wbia/plottool/nx_helpers.py", line 157, in show_nx
    ax.axesPatch.set_facecolor('white')

AttributeError: 'AxesSubplot' object has no attribute 'axesPatch'
DOCTEST REPRODUCTION
CommandLine:
    python -m xdoctest /wbia/wildbook-ia/wbia/plottool/nx_helpers.py show_nx:0
```

According to matplotlib/basemap#373:

> With the release of Matplotlib 2.1.0, Axes.axesPatch has been
> deprecated in favor of Axes.patch.

Changing `.axesPatch` to `.patch` fixed this error.
bluemellophone pushed a commit to WildMeOrg/wildbook-ia that referenced this pull request Jul 8, 2020
When running doctests:

```
DOCTEST TRACEBACK
Traceback (most recent call last):

  File "/virtualenv/env3/lib/python3.6/site-packages/xdoctest/doctest_example.py", line 553, in run
    exec(code, test_globals)

  File "<doctest:/wbia/wildbook-ia/wbia/plottool/nx_helpers.py::show_nx:0>", line rel: 15, abs: 124, in <module>
    >>> e = show_nx(graph, with_labels, fnum, pnum, layout='agraph')

  File "/wbia/wildbook-ia/wbia/plottool/nx_helpers.py", line 157, in show_nx
    ax.axesPatch.set_facecolor('white')

AttributeError: 'AxesSubplot' object has no attribute 'axesPatch'
DOCTEST REPRODUCTION
CommandLine:
    python -m xdoctest /wbia/wildbook-ia/wbia/plottool/nx_helpers.py show_nx:0
```

According to matplotlib/basemap#373:

> With the release of Matplotlib 2.1.0, Axes.axesPatch has been
> deprecated in favor of Axes.patch.

Changing `.axesPatch` to `.patch` fixed this error.
bluemellophone pushed a commit to WildMeOrg/wildbook-ia that referenced this pull request Jul 10, 2020
When running doctests:

```
DOCTEST TRACEBACK
Traceback (most recent call last):

  File "/virtualenv/env3/lib/python3.6/site-packages/xdoctest/doctest_example.py", line 553, in run
    exec(code, test_globals)

  File "<doctest:/wbia/wildbook-ia/wbia/plottool/nx_helpers.py::show_nx:0>", line rel: 15, abs: 124, in <module>
    >>> e = show_nx(graph, with_labels, fnum, pnum, layout='agraph')

  File "/wbia/wildbook-ia/wbia/plottool/nx_helpers.py", line 157, in show_nx
    ax.axesPatch.set_facecolor('white')

AttributeError: 'AxesSubplot' object has no attribute 'axesPatch'
DOCTEST REPRODUCTION
CommandLine:
    python -m xdoctest /wbia/wildbook-ia/wbia/plottool/nx_helpers.py show_nx:0
```

According to matplotlib/basemap#373:

> With the release of Matplotlib 2.1.0, Axes.axesPatch has been
> deprecated in favor of Axes.patch.

Changing `.axesPatch` to `.patch` fixed this error.
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