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 49d5ced

Browse filesBrowse files
authored
Merge pull request #9989 from jklymak/Fix-clabel-manual-space
FIX: clabel manual spacing was incorrect
2 parents fb18b4e + 815601d commit 49d5ced
Copy full SHA for 49d5ced

File tree

Expand file treeCollapse file tree

7 files changed

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

7 files changed

+247
-622
lines changed

‎lib/matplotlib/contour.py

Copy file name to clipboardExpand all lines: lib/matplotlib/contour.py
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +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 is in points.
579+
lw *= self.ax.figure.dpi / 72.0 # scale to screen coordinates
580+
# now lw in pixels
578581

579582
# Figure out label rotation.
580583
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.