Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit934b936

Browse files
committed
TST: updated test images
1 parent326b471 commit934b936

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
ifinline:
Binary file not shown.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp