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

Skip to content

Commit 35ced03

Browse files
authored
Merge pull request #22490 from anntzer/ui
Deprecate unused, untested Affine2D.identity().
2 parents 4821231 + d8146d2 commit 35ced03

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
``Affine2D.identity()``
2+
~~~~~~~~~~~~~~~~~~~~~~~
3+
... is deprecated in favor of directly calling the `.Affine2D` constructor with
4+
no arguments.

lib/matplotlib/transforms.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1958,6 +1958,7 @@ def set(self, other):
19581958
self.invalidate()
19591959

19601960
@staticmethod
1961+
@_api.deprecated("3.6", alternative="Affine2D()")
19611962
def identity():
19621963
"""
19631964
Return a new `Affine2D` object that is the identity transform.

0 commit comments

Comments
 (0)