Skip to content

Commit 28fb185

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

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed
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

+3-1
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)