【发布时间】:2022-01-14 10:30:45
【问题描述】:
我正在尝试在我的情节中添加一个图例,但它是从上到下对齐的,我怎样才能使图例中的文本水平?提前致谢。
fig, ax = plt.subplots()
sp=ax.contourf(x1line, x2line, pgrid)
plt.colorbar(sp)
ax.legend('label1')
【问题讨论】:
-
这可能会有所帮助:tutorialspoint.com/….
标签: python matplotlib legend