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

Skip to content

Commit a3801b5

Browse files
committed
Deprecate axis3d.Axis.get_tick_positions.
See changelog entry for rationale.
1 parent 3930b09 commit a3801b5

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed
Lines 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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ def init3d(self):
133133
self.label._transform = self.axes.transData
134134
self.offsetText._transform = self.axes.transData
135135

136+
@cbook.deprecated("3.1")
136137
def get_tick_positions(self):
137138
majorLocs = self.major.locator()
138139
self.major.formatter.set_locs(majorLocs)

0 commit comments

Comments
 (0)