python之plt画图之格式化颜色和线形
2017-02-23 15:53
477 查看
import matplotlib.pyplot as plt
在ipython中输入 plt.plot?
The following format string characters are accepted to control
the line style or marker:
================ ===============================
character description
================ ===============================
``'-'`` solid line style
``'--'`` dashed line style
``'-.'`` dash-dot line style
``':'`` dotted line style
``'.'`` 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
================ ===============================
The following color abbreviations are supported:
========== ========
character color
========== ========
'b' blue
'g' green
'r' red
'c' cyan
'm' magenta
'y' yellow
'k' black
'w' white
========== ========
在ipython中输入 plt.plot?
The following format string characters are accepted to control
the line style or marker:
================ ===============================
character description
================ ===============================
``'-'`` solid line style
``'--'`` dashed line style
``'-.'`` dash-dot line style
``':'`` dotted line style
``'.'`` 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
================ ===============================
The following color abbreviations are supported:
========== ========
character color
========== ========
'b' blue
'g' green
'r' red
'c' cyan
'm' magenta
'y' yellow
'k' black
'w' white
========== ========
相关文章推荐
- python画图:线条和颜色
- python控制台颜色输出以及字符串格式化输出
- Python 格式化输出 ( 颜色 )
- Python基础知识:格式化字符、颜色
- Python基础知识6:格式化字符、颜色
- MATLAB画图-plot-线形、颜色、数据点形状的选择
- 对Python中plt的画图函数详解
- Python字符串格式化符号
- Python print函数用法,print 格式化输出
- Python用re(正则表达式)模块过滤Telnet字体颜色
- python print函数格式化输出
- Python的print 格式化输出
- (matlab)plot画图的颜色线型
- python字符串操作(连接、比较、格式化等)
- [Python]:一句话将RGB颜色转换成HEX码
- python 写的javascript格式化程序
- [Dynamic Language] Python 日期时间格式化字符串
- python(5): string的格式化输出
- ABAP 格式化WRITE的输出颜色
- Python格式化日期时间