/图例(legend)中显示
plt.plot(x,y,'ro',color='red',label='业绩趋势走向')
2.线条颜色
(1)线条颜色命名方式
有三种表示颜色的方式:
用全名...,如blue
16进制 ,如FF00FF
(r, g, b) 或 (r, g, b, a),如(1,0,1,1) ,其中 r g b a 取均为[0, 1]之间,[0, 1]之间的浮点数的字符串形式,...0表示黑色,1表示白色
(2)颜色名称或简写
plot方法的关键字参数color(或c)用来设置线的颜色。...``'d'`` thin_diamond marker
``'|'`` vline marker
``'_'`` hline...o', mec='r', mfc='w')
plt.plot(x, y2, marker='*', ms=10)
6.alpha线条透明度
alpha的值在[0,1]之间
import