Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e017501

Browse files
committed
Deprecate Artist.is_figure_set.
Implicit boolean conversion of artist.figure works just as well.
1 parent 39694f2 commit e017501

File tree

4 files changed

+1
-15
lines changed

4 files changed

+1
-15
lines changed

doc/api/artist_api.rst

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ Interactive
4444
Artist.set_picker
4545
Artist.contains
4646

47-
4847
Margins and Autoscaling
4948
-----------------------
5049

@@ -80,7 +79,6 @@ Bulk Properties
8079
Artist.properties
8180
Artist.set
8281

83-
8482
Drawing
8583
-------
8684

@@ -114,8 +112,6 @@ Drawing
114112
Artist.get_path_effects
115113
Artist.get_transformed_clip_path_and_affine
116114

117-
118-
119115
Figure and Axes
120116
---------------
121117

@@ -129,7 +125,6 @@ Figure and Axes
129125

130126
Artist.set_figure
131127
Artist.get_figure
132-
Artist.is_figure_set
133128

134129
Children
135130
--------
@@ -141,7 +136,6 @@ Children
141136
Artist.get_children
142137
Artist.findobj
143138

144-
145139
Transform
146140
---------
147141

@@ -153,8 +147,6 @@ Transform
153147
Artist.get_transform
154148
Artist.is_transform_set
155149

156-
157-
158150
Units
159151
-----
160152

doc/api/axes_api.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,6 @@ Artist Methods
619619
:template: autosummary.rst
620620
:nosignatures:
621621

622-
Axes.is_figure_set
623622
Axes.remove
624623
Axes.is_transform_set
625624

doc/api/axis_api.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,6 @@ Ticks
503503
Tick.get_zorder
504504
Tick.have_units
505505
Tick.hitlist
506-
Tick.is_figure_set
507506
Tick.is_transform_set
508507
Tick.mouseover
509508
Tick.pchanged
@@ -571,7 +570,6 @@ Ticks
571570
XTick.get_zorder
572571
XTick.have_units
573572
XTick.hitlist
574-
XTick.is_figure_set
575573
XTick.is_transform_set
576574
XTick.mouseover
577575
XTick.pchanged
@@ -639,7 +637,6 @@ Ticks
639637
YTick.get_zorder
640638
YTick.have_units
641639
YTick.hitlist
642-
YTick.is_figure_set
643640
YTick.is_transform_set
644641
YTick.mouseover
645642
YTick.pchanged
@@ -717,7 +714,6 @@ Axis
717714
Axis.get_zorder
718715
Axis.have_units
719716
Axis.hitlist
720-
Axis.is_figure_set
721717
Axis.is_transform_set
722718
Axis.mouseover
723719
Axis.pchanged
@@ -785,7 +781,6 @@ Axis
785781
XAxis.get_zorder
786782
XAxis.have_units
787783
XAxis.hitlist
788-
XAxis.is_figure_set
789784
XAxis.is_transform_set
790785
XAxis.mouseover
791786
XAxis.pchanged
@@ -853,7 +848,6 @@ Axis
853848
YAxis.get_zorder
854849
YAxis.have_units
855850
YAxis.hitlist
856-
YAxis.is_figure_set
857851
YAxis.is_transform_set
858852
YAxis.mouseover
859853
YAxis.pchanged

lib/matplotlib/artist.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,7 @@ def get_picker(self):
458458
'Return the picker object used by this artist'
459459
return self._picker
460460

461+
@cbook.deprecated("2.2", "artist.figure is not None")
461462
def is_figure_set(self):
462463
"""
463464
Returns True if the artist is assigned to a

0 commit comments

Comments
 (0)