Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9ecbbd5

Browse files
AMAN194701story645
andcommitted
Update galleries/examples/misc/ftface_props.py
Co-authored-by: hannah <[email protected]>
1 parent 702db36 commit 9ecbbd5

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

galleries/examples/misc/ftface_props.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,9 @@
9191
]
9292

9393
for label, y, color in metrics:
94-
ax.plot([LINE_X0, LINE_X1], [y, y],
95-
color=color, linewidth=1.5, linestyle='--', alpha=0.9, zorder=2)
94+
l, = ax.hline(y, color=color, linewidth=1.5, linestyle='--', alpha=0.9, zorder=2)
9695
# Nudge bbox-edge labels slightly away from the rectangle border.
97-
y_text = (y - 0.015 if "bbox top" in label else
98-
y + 0.015 if "bbox bottom" in label else y)
99-
ax.text(LABEL_X, y_text, label,
100-
color=color, va='center', ha='left',
96+
ax.annotate (LABEL_X, y_text, label, (), xycoords = (1, .5), color=color, va='center', ha='left',
10197
fontsize=9, fontweight='medium', zorder=2)
10298

10399
# Underline thickness: shaded band from (ul_pos − ul_thick) to ul_pos.

0 commit comments

Comments
 (0)