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

Skip to content

Commit 2e71fa1

Browse files
committed
Remove unit bbox deprecations.
1 parent c33e2ed commit 2e71fa1

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
~~~~~~~~~~~~~~~~~~~
33
``mlab.apply_window`` and ``mlab.stride_repeat`` have been removed.
44

5+
Axes3D
6+
~~~~~~
7+
``axes3d.unit_bbox`` has been removed; use ``Bbox.unit`` instead.
8+
59
axisartist
610
~~~~~~~~~~
711
``mpl_toolkits.axisartist.grid_finder.GridFinderBase`` has been removed; use
@@ -14,3 +18,7 @@ Returning a factor equal to None from axisartist Locators (which are **not**
1418
the same as "standard" tick Locators), or passing a factor equal to None
1519
to axisartist Formatters (which are **not** the same as "standard" tick
1620
Formatters) is no longer supported. Pass a factor equal to 1 instead.
21+
22+
Misc
23+
~~~~
24+
``BboxBase.is_unit`` has been removed; check the `.Bbox` extents if needed.

lib/matplotlib/transforms.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -241,11 +241,6 @@ def frozen(self):
241241
def __array__(self, *args, **kwargs):
242242
return self.get_points()
243243

244-
@cbook.deprecated("3.2")
245-
def is_unit(self):
246-
"""Return whether this is the unit box (from (0, 0) to (1, 1))."""
247-
return self.get_points().tolist() == [[0., 0.], [1., 1.]]
248-
249244
@property
250245
def x0(self):
251246
"""

lib/mpl_toolkits/mplot3d/axes3d.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,6 @@
3838
from . import axis3d
3939

4040

41-
@cbook.deprecated("3.2", alternative="Bbox.unit()")
42-
def unit_bbox():
43-
box = Bbox(np.array([[0, 0], [1, 1]]))
44-
return box
45-
46-
4741
@cbook._define_aliases({
4842
"xlim3d": ["xlim"], "ylim3d": ["ylim"], "zlim3d": ["zlim"]})
4943
class Axes3D(Axes):

0 commit comments

Comments
 (0)