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

Skip to content

Deprecate unused ContourLabeler.get_real_label_width. #9904

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 2 commits into from
Dec 2, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
Deprecate unused ContourLabeler.get_real_label_width.
  • Loading branch information
anntzer committed Dec 1, 2017
commit 23664c53c207b489874b2aa330208ab2ae8e94cc
4 changes: 4 additions & 0 deletions doc/api/api_changes/2017-12-01-AL.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Deprecation of unused methods
`````````````````````````````

The unused ``ContourLabeler.get_real_label_width`` method is deprecated.
1 change: 1 addition & 0 deletions lib/matplotlib/contour.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ def get_label_width(self, lev, fmt, fsize):

return lw

@cbook.deprecated("2.2")
def get_real_label_width(self, lev, fmt, fsize):
"""
This computes actual onscreen label width.
Expand Down