Skip to content

Commit 934b936

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

File tree

7 files changed

+143
-380
lines changed

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy