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 a9fb706

Browse filesBrowse files
committed
Deprecate some untested, never used axes_grid1 methods.
They've never been used in the entire git history, are untested, and seem easy enough to reimplement using public API if someone *really* needs them.
1 parent 766db51 commit a9fb706
Copy full SHA for a9fb706

File tree

Expand file treeCollapse file tree

3 files changed

+6
-0
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+6
-0
lines changed
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
``Divider.get_vsize_hsize`` and ``Grid.get_vsize_hsize``
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
These ``axes_grid1`` methods are deprecated. Copy their implementations if
4+
needed.

‎lib/mpl_toolkits/axes_grid1/axes_divider.py

Copy file name to clipboardExpand all lines: lib/mpl_toolkits/axes_grid1/axes_divider.py
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ def get_horizontal_sizes(self, renderer):
5858
def get_vertical_sizes(self, renderer):
5959
return [s.get_size(renderer) for s in self.get_vertical()]
6060

61+
@_api.deprecated("3.5")
6162
def get_vsize_hsize(self):
6263
vsize = Size.AddList(self.get_vertical())
6364
hsize = Size.AddList(self.get_horizontal())

‎lib/mpl_toolkits/axes_grid1/axes_grid.py

Copy file name to clipboardExpand all lines: lib/mpl_toolkits/axes_grid1/axes_grid.py
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ def set_axes_locator(self, locator):
326326
def get_axes_locator(self):
327327
return self._divider.get_locator()
328328

329+
@_api.deprecated("3.5")
329330
def get_vsize_hsize(self):
330331
return self._divider.get_vsize_hsize()
331332

0 commit comments

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