question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ocefpafcommented, 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.

0reactions
sebhahncommented, Apr 15, 2018

Thanks everybody!

Read more comments on GitHub >

github_iconTop Results From Across the Web

'AxesSubplot' object has no attribute 'get_axis_bgcolor'
I am trying to run Basemap examples from here and I am facing an error 'AxesSubplot' object has no attribute 'get_axis_bgcolor'.
Read more >
Unknown property axisbg · Issue #7 · jawatson/pythonprop
Running pythonprop 0.27 under OSX 10.13.6 MacPorts with python 3.5.5 and ... /50691151/axessubplot-object-has-no-attribute-get-axis-bgcolor.
Read more >
Geolocation visualisations | Kaggle
Explore and run machine learning code with Kaggle Notebooks | Using data from ... "AttributeError", "evalue": "'AxesSubplot' object has no attribute ...
Read more >
matplotlib.figure — Matplotlib 3.6.2 documentation
Usually artists are added to Axes objects using Axes.add_artist ... If the added artist has no transform previously set, its transform will be...
Read more >
gr.pygr — GR Framework 0.66.0 documentation
[docs]class Coords2D(object): def __init__(self, x, y, updatex_callback=None, ... _p.y is None: raise AttributeError("x or y has not been initialized.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found