Skip to content

'AxesSubplot' object has no attribute 'set_axis_bgcolor' #10762

@jnothman

Description

@jnothman

It seems one of our examples, examples/covariance/plot_sparse_cov.py, makes use of a method from Matplotlib that has been removed in the latest release (2.2.0). CircleCI logs show:

/home/circleci/project/examples/covariance/plot_sparse_cov.py failed leaving traceback:
Traceback (most recent call last):
  File "/home/circleci/project/examples/covariance/plot_sparse_cov.py", line 124, in <module>
    ax.set_axis_bgcolor('.7')
AttributeError: 'AxesSubplot' object has no attribute 'set_axis_bgcolor'

We need to use an alternative.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions