Matplotlib線とマーカー
Matplotlib のモジュール Pyplot を使う(プロット作成)上で,理解しておくと良いことを示します.
目次
ラインスタイル (Line Styles: 線種) の指定
ラインの種類
プロットのラインは,以下の表に示す文字列で決めます.
ラインの指定
指定文字 |
説明 |
出力ライン |
'-' |
実線 |
![](html_data/line_style/solid.svg) |
'--' |
破線 |
![](html_data/line_style/dashed.svg) |
'-.' |
一点鎖線 |
![](html_data/line_style/dash-dot.svg) |
':' |
点線 |
![](html_data/line_style/dotted.svg) |
マーカースタイル (Marker Styles) の指定
マーカーの種類
マーカーの指定
指定文字 |
説明 |
出力 |
|
指定文字 |
説明 |
出力 |
'.' |
ポイント (point) |
![](html_data/marker_style/point.svg) |
|
'p' |
五角形 (pentagon) |
![](html_data/marker_style/pentagon.svg) |
',' |
ピクセル (pixel) |
![](html_data/marker_style/pixel.svg) |
|
'P' |
塗りつぶしプラス (filled plus) |
![](html_data/marker_style/plus_filled.svg) |
'o' |
丸 (circle) |
![](html_data/marker_style/circle.svg) |
|
'*' |
星 (star) |
![](html_data/marker_style/star.svg) |
'v' |
下三角 (triangle_down) |
![](html_data/marker_style/triangle_down.svg) |
|
'h' |
六角形 1 (hexagon 1) |
![](html_data/marker_style/hexagon1.svg) |
'^' |
上三角 (triangle_up) |
![](html_data/marker_style/triangle_up.svg) |
|
'H' |
六角形 2 (hexagon 2) |
![](html_data/marker_style/hexagon2.svg) |
'<' |
左三角 (triangle_left) |
![](html_data/marker_style/triangle_left.svg) |
|
'+' |
プラス (plus) |
![](html_data/marker_style/plus.svg) |
'>' |
右三角 (triangle_right) |
![](html_data/marker_style/triangle_right.svg) |
|
'x' |
クロス (x) |
![](html_data/marker_style/x.svg) |
'1' |
下三角 (tri_down) |
![](html_data/marker_style/tri_down.svg) |
|
'X' |
塗りつぶしクロス (filled x) |
![](html_data/marker_style/x_filled.svg) |
'2' |
上等角Y字 (tri_up marker) |
![](html_data/marker_style/tri_up.svg) |
|
'D' |
ダイヤモンド (diamond) |
![](html_data/marker_style/diamond.svg) |
'3' |
左等角Y字 (tri_left) |
![](html_data/marker_style/tri_left.svg) |
|
'd' |
薄いダイヤモンド (thin diamond) |
![](html_data/marker_style/thin_diamond.svg) |
'4' |
右等角Y字 (tri_right) |
![](html_data/marker_style/tri_right.svg) |
|
'|' |
縦線 (vline) |
![](html_data/marker_style/vline.svg) |
'8' |
八角形 (octagon) |
![](html_data/marker_style/octagon.svg) |
|
'_' |
横線 (hline) |
![](html_data/marker_style/hline.svg) |
's' |
正方形 (square) |
![](html_data/marker_style/square.svg) |
|
ページ作成情報
参考資料
更新履歴
|