8000 Deprecate axis3d.Axis.get_tick_positions. by anntzer · Pull Request #13373 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Deprecate axis3d.Axis.get_tick_positions. #13373

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 6, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions doc/api/next_api_changes/2018-02-06-AL.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Deprecations
````````````

``axis3d.Axis.get_tick_positions`` is deprecated. It has never been used
internally, no equivalent method exists on the 2D Axis classes, and, despite
the similar name, it has a completely different behavior from the 2D Axis'
`axis.Axis.get_ticks_position` method.
4 changes: 3 additions & 1 deletion lib/mpl_toolkits/mplot3d/axis3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
import numpy as np

from matplotlib import (
artist, lines as mlines, axis as maxis, patches as mpatches, rcParams)
artist, cbook, lines as mlines, axis as maxis, patches as mpatches,
rcParams)
from . import art3d, proj3d


Expand Down Expand Up @@ -133,6 +134,7 @@ def init3d(self):
self.label._transform = self.axes.transData
self.offsetText._transform = self.axes.transData

@cbook.deprecated("3.1")
def get_tick_positions(self):
majorLocs = self.major.locator()
self.major.formatter.set_locs(majorLocs)
Expand Down
0