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.

_gridOnMajor bug with recent versions of Matplotlib

See original GitHub issue

After upgrading to Matplotlib 3.3.3, the following error appears when trying to use mplleaflet:

'XAxis' object has no attribute '_gridOnMajor

The problem comes from mplexporter and was corrected in mpld3’s mplexporter (see https://github.com/mpld3/mpld3/issues/479) but the correction has not been propagated to the version of mplexporter used by mplleaflet.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:9

github_iconTop GitHub Comments

5reactions
mattgohcommented, Dec 30, 2020

I run into similar error. any workaround please?

The easiest workaround is probably to use an earlier version of Matplotlib (although I am not certain of the exact version number at which the bug started to occur).

Downgrading with pip install matplotlib==3.3.2 fixed it for me.

0reactions
rmoglencommented, Aug 12, 2021

I am having the same problem, and downgrading did work

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting — Matplotlib 3.6.2 documentation
Problems with recent git versions#. First make sure you have a clean build and install (see How to completely remove Matplotlib), get the...
Read more >
Show Source - Matplotlib
JKS 2011-12-27 Work around an EINTR bug in some versions of subprocess. - JKS 2011-10-25 added support for \operatorname to mathtext, including the...
Read more >
Matplotlib.pdf
Grab the latest tar.gz release file from the PyPI files page, or if you want to develop Matplotlib or just need the latest...
Read more >
Release notes — Matplotlib 3.6.2 documentation
Past versions#. Version 3.3#. What's new in Matplotlib 3.3.0 (Jul 16, 2020) · API Changes for 3.3.1 ...
Read more >
How-To — Matplotlib 1.4.3 documentation
Request a new feature; Reporting a bug or submitting a patch; Contribute to matplotlib documentation. Matplotlib in a web application server.
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