python_matplotlib DAY_21(2)

Learn
drawing common attribute
common properties:
1. Color

plt.plot(color="所需颜色")
plt.plot(color=())#元组形式
plt.plot(color="数字")
plt.plot(color="#FFOOFF")

2. Point Style

There are a lot of python marker can go to find information

plt.plot(marker="D")#画出线段,对应点是D形状
plt.plot("D")#只画点,无线段

3. line style
line style only four

plt.plot("-")#实线
plt.plot("-.")#点画线
plt.plot("--")#虚线
plt.plot(":")#点线

4. style string

plt.plot("颜色点型线性")#就可是实现三个功能同时实现
Published 41 original articles · won praise 1 · views 925

Guess you like

Origin blog.csdn.net/soulproficiency/article/details/104106219