Skip to content

Commit bb978a4

Browse files
committed
Remove transforms API deprecated in 3.3.
1 parent 372741c commit bb978a4

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

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

+6
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

+2-2
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

-8
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)