【发布时间】:2015-01-25 02:44:12
【问题描述】:
我想用 matplotlib 的 .vline 命令标记我的垂直线,但由于某种原因,标签参数没有做任何事情/在最终绘图上显示任何内容。有谁知道如何让标签显示?
plt.vlines(x=pah, ymin=0, ymax=0.6, colors='0.75', linestyles='dashed', label='PAHs')
除了标签之外,一切都有效。
非常感谢,
L
【问题讨论】:
标签: python matplotlib enthought