Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bb978a4

Browse filesBrowse files
committed
Remove transforms API deprecated in 3.3.
1 parent 372741c commit bb978a4
Copy full SHA for bb978a4

File tree

Expand file treeCollapse file tree

3 files changed

+8
-10
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+8
-10
lines changed

‎doc/api/next_api_changes/removals/20465-ES.rst

Copy file name to clipboardExpand all lines: doc/api/next_api_changes/removals/20465-ES.rst
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,9 @@ Path helpers
5353
a ``STOP`` code at the end of the path.
5454
* ``bezier.concatenate_paths``; use ``Path.make_compound_path()`` instead.
5555
* *quantize* parameter of `.Path.cleaned()`
56+
57+
``BboxBase.inverse_transformed``
58+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
59+
60+
``.BboxBase.inverse_transformed`` has been removed (call `.BboxBase.transformed`
61+
on the `~.Transform.inverted()` transform instead).

‎doc/api/prev_api_changes/api_changes_0.98.0.rst

Copy file name to clipboardExpand all lines: doc/api/prev_api_changes/api_changes_0.98.0.rst
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ with a verb in the present tense.
126126
| ``lbwh_to_bbox(l, b, w, h)`` | `Bbox.from_bounds(x0, y0, w, h) <.Bbox.from_bounds>` |
127127
| | [It is a staticmethod.] |
128128
+--------------------------------------------+------------------------------------------------------+
129-
| ``inverse_transform_bbox(trans, bbox)`` | `Bbox.inverse_transformed(trans) |
130-
| | <.BboxBase.inverse_transformed>` |
129+
| ``inverse_transform_bbox(trans, bbox)`` | ``bbox.inverse_transformed(trans)`` |
130+
| | |
131131
+--------------------------------------------+------------------------------------------------------+
132132
| ``Interval.contains_open(v)`` | `interval_contains_open(tuple, v) |
133133
| | <.interval_contains_open>` |

‎lib/matplotlib/transforms.py

Copy file name to clipboardExpand all lines: lib/matplotlib/transforms.py
-8Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -493,14 +493,6 @@ def transformed(self, transform):
493493
[pts[0], [pts[0, 0], pts[1, 1]], [pts[1, 0], pts[0, 1]]]))
494494
return Bbox([ll, [lr[0], ul[1]]])
495495

496-
@_api.deprecated("3.3", alternative="transformed(transform.inverted())")
497-
def inverse_transformed(self, transform):
498-
"""
499-
Construct a `Bbox` by statically transforming this one by the inverse
500-
of *transform*.
501-
"""
502-
return self.transformed(transform.inverted())
503-
504496
coefs = {'C': (0.5, 0.5),
505497
'SW': (0, 0),
506498
'S': (0.5, 0),

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.