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 326b471

Browse filesBrowse files
committed
FIX: clabel manual spacing was incorrect
1 parent cfb648f commit 326b471
Copy full SHA for 326b471

File tree

Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed

‎lib/matplotlib/contour.py

Copy file name to clipboardExpand all lines: lib/matplotlib/contour.py
+1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.