FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

cla(), clf() should unset the `.axes` and `.figure` attributes of deparented artists · Issue #6982 · matplotlib/matplotlib · GitHub

Repository navigation

cla(), clf() should unset the .axes and .figure attributes of deparented artists #6982

Closed

Description

mpl2.0b3: Removing an artist from its axes unsets its .axes attribute, but clearing the axes does not do so.

In [11]: f, a = plt.subplots(); l, = a.plot([1, 2]); l.remove(); print(l.axes)
None

In [12]: f, a = plt.subplots(); l, = a.plot([1, 2]); a.cla(); print(l.axes)
Axes(0.125,0.11;0.775x0.77)

Activity

  1. added this to the milestone on Aug 27, 2016
  2. modified the milestones: , on Oct 3, 2017
  3. modified the milestones: needs sorting, v3.1 on Aug 30, 2018
  4. modified the milestones: v3.1.0, v3.2.0 on Feb 25, 2019
  5. added a commit that references this issue on Dec 4, 2022
    2c1172b
  6. added 2 commits that reference this issue on Dec 5, 2022
    c68d4de
    ffcc8d3
  7. added a commit that references this issue on Dec 19, 2022
    de498b4
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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL