GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Matplotlib error: 'AxesSubplot' object has no attribute 'set_facecolor' · Issue #25 · ResidentMario/missingno

Matplotlib error: 'AxesSubplot' object has no attribute 'set_facecolor' #25

New issue
Copy link
New issue
Copy link
Closed
Closed
Matplotlib error: 'AxesSubplot' object has no attribute 'set_facecolor'#25
Copy link

Description

@noelmas
noelmas
opened on Feb 28, 2017
Issue body actions

Get this error when running msno.matrix on a standard Pandas DataFrame.

I'm using:

Using:

matplotlib.version
'1.5.1'

pd.version
'0.19.2'

Here's the rest of the error:


AttributeError Traceback (most recent call last)
in ()
----> 1 msno.matrix(companies.sample(100))

/Users/Sam/anaconda/lib/python3.5/site-packages/missingno/missingno.py in matrix(df, filter, n, p, sort, figsize, width_ratios, color, fontsize, labels, sparkline, inline, freq)
250 ax1.grid(b=False)
251 ax1.set_aspect('auto')
--> 252 ax1.set_facecolor((1, 1, 1))
253 # Remove the black border.
254 ax1.spines['top'].set_visible(False)

AttributeError: 'AxesSubplot' object has no attribute 'set_facecolor'

Activity

  1. ResidentMario commented on Feb 28, 2017

    @ResidentMario
    ResidentMario
    on Feb 28, 2017
    Owner
    More actions

    matplotlib 2.0.0 deprecated set_axis_bgcolor and replace it with set_facecolor. In my patch for mpl 2.0.0 compatibility I didn't check to see whether or not set_facecolor exists in mpl < 2.0.0—my apologies, your error shows that it does not.

    To maintain mpl < 2.0.0 compatibility, I'm going to have to implement some kind of version check here. In the meanwhile, to fix this right now you should update your matplotlib to the latest (2.0.0) version.

  2. ResidentMario commented on Mar 1, 2017

    @ResidentMario
    ResidentMario
    on Mar 1, 2017
    Owner
    More actions

    Resolved in 0.3.5. You can pip install -U missingno to upgrade.

  3. ResidentMario
    closed this as completedon Mar 1, 2017
  4. noelmas commented on Mar 1, 2017

    @noelmas
    noelmas
    on Mar 1, 2017
    Author
    More actions

    Heroic project by the way, really making the early stages of my data exploration much more efficient. Thank you @ResidentMario

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

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

      You are visitor 01402792 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.