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

Skip to content

Commit 934b936

Browse files
committed
TST: updated test images
1 parent 326b471 commit 934b936

7 files changed

+143
-380
lines changed

lib/matplotlib/contour.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,9 @@ 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
578+
# lw is in points.
579+
lw *= self.ax.figure.dpi / 72.0 # scale to screen coordinates
580+
# now lw in pixels
579581

580582
# Figure out label rotation.
581583
if inline:
Binary file not shown.

0 commit comments

Comments
 (0)