Skip to content

Commit 326b471

Browse files
committed
FIX: clabel manual spacing was incorrect
1 parent cfb648f commit 326b471

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/contour.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,7 @@ def add_label_near(self, x, y, inline=True, inline_spacing=5,
575575
# Get label width for rotating labels and breaking contours
576576
lw = self.get_label_width(self.labelLevelList[lmin],
577577
self.labelFmt, self.labelFontSizeList[lmin])
578+
lw *= self.ax.figure.dpi / 72.0
578579

579580
# Figure out label rotation.
580581
if inline:

0 commit comments

Comments
 (0)