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

Skip to content

Commit 23664c5

Browse files
committed
Deprecate unused ContourLabeler.get_real_label_width.
1 parent 1293916 commit 23664c5

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

doc/api/api_changes/2017-12-01-AL.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Deprecation of unused methods
2+
`````````````````````````````
3+
4+
The unused ``ContourLabeler.get_real_label_width`` method is deprecated.

lib/matplotlib/contour.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@ def get_label_width(self, lev, fmt, fsize):
289289

290290
return lw
291291

292+
@cbook.deprecated("2.2")
292293
def get_real_label_width(self, lev, fmt, fsize):
293294
"""
294295
This computes actual onscreen label width.

0 commit comments

Comments
 (0)