Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 815601d

Browse filesBrowse files
committed
TST: updated test images
1 parent 326b471 commit 815601d
Copy full SHA for 815601d

File tree

Expand file treeCollapse file tree

7 files changed

+247
-623
lines changed
Filter options
Expand file treeCollapse file tree

7 files changed

+247
-623
lines changed

‎lib/matplotlib/contour.py

Copy file name to clipboardExpand all lines: lib/matplotlib/contour.py
+3-1Lines 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:
Loading
Binary file not shown.
Loading

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.