欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

python中matplotlib的颜色及线条控制

程序员文章站 2022-03-13 15:53:29
linestyle可选参数: marker可选参数: matplotlib中color可用的颜色: ......

linestyle可选参数:

'-'       solid line style
'--'      dashed line style
'-.'      dash-dot line style
':'       dotted line style

marker可选参数:

'.'       point marker
','       pixel marker
'o'       circle marker
'v'       triangle_down marker
'^'       triangle_up marker
'<'       triangle_left marker
'>'       triangle_right marker
'1'       tri_down marker
'2'       tri_up marker
'3'       tri_left marker
'4'       tri_right marker
's'       square marker
'p'       pentagon marker
'*'       star marker
'h'       hexagon1 marker
'h'       hexagon2 marker
'+'       plus marker
'x'       x marker
'd'       diamond marker
'd'       thin_diamond marker
'|'       vline marker
'_'       hline marker

matplotlib中color可用的颜色:

python中matplotlib的颜色及线条控制