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 aab3e8a

Browse filesBrowse files
authored
Merge pull request #13373 from anntzer/get_tick_positions
Deprecate axis3d.Axis.get_tick_positions.
2 parents 5f0c786 + 28fb185 commit aab3e8a
Copy full SHA for aab3e8a

File tree

Expand file treeCollapse file tree

2 files changed

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

2 files changed

+10
-1
lines changed
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Deprecations
2+
````````````
3+
4+
``axis3d.Axis.get_tick_positions`` is deprecated. It has never been used
5+
internally, no equivalent method exists on the 2D Axis classes, and, despite
6+
the similar name, it has a completely different behavior from the 2D Axis'
7+
`axis.Axis.get_ticks_position` method.

‎lib/mpl_toolkits/mplot3d/axis3d.py

Copy file name to clipboardExpand all lines: lib/mpl_toolkits/mplot3d/axis3d.py
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
import numpy as np
88

99
from matplotlib import (
10-
artist, lines as mlines, axis as maxis, patches as mpatches, rcParams)
10+
artist, cbook, lines as mlines, axis as maxis, patches as mpatches,
11+
rcParams)
1112
from . import art3d, proj3d
1213

1314

@@ -133,6 +134,7 @@ def init3d(self):
133134
self.label._transform = self.axes.transData
134135
self.offsetText._transform = self.axes.transData
135136

137+
@cbook.deprecated("3.1")
136138
def get_tick_positions(self):
137139
majorLocs = self.major.locator()
138140
self.major.formatter.set_locs(majorLocs)

0 commit comments

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