Python matplotlibで学ぶ…グラフ描画プログラム 新しいページはコチラ
提供: yonewiki
(→54行目~57行目) |
(→54行目~57行目) |
||
566行: | 566行: | ||
::矢印の線のテキストの修飾を各種キーワードで指定します。テキストボックスの線の太さや塗りの色の設定といった更に細かい設定はこのキーワードの中でbbox=dict(boxstyle="キーワード", lw=xx(=float), ls=xx(=keyword),fc='#xxxxx')のように指定しなければなりません。 | ::矢印の線のテキストの修飾を各種キーワードで指定します。テキストボックスの線の太さや塗りの色の設定といった更に細かい設定はこのキーワードの中でbbox=dict(boxstyle="キーワード", lw=xx(=float), ls=xx(=keyword),fc='#xxxxx')のように指定しなければなりません。 | ||
− | :: | + | ::boxstyleキーワード一覧 |
− | ::*circle | + | ::*circle 円 |
− | ::*darrow | + | ::*darrow 両側矢印 |
− | ::*larrow | + | ::*larrow 左矢印 |
− | ::*rarrow | + | ::*rarrow 右矢印 |
− | ::*round | + | ::*round 丸角四角 |
− | ::*round4 | + | ::*round4 丸角四角で、全体に膨らみあり |
− | ::*roundtooth | + | ::*roundtooth 波線 |
− | ::*sawtooth | + | ::*sawtooth のこぎり線 |
− | ::*square | + | ::*square 四角 |
+ | |||
+ | [[ファイル:Subplot pattern5.png| | |none|subplot_pattern5]] | ||
+ | |||
+ | ::boxstyleに | ||
+ | <syntaxhighlight2 lang="python"> | ||
+ | bbox = dict(boxstyle = "square, pad = 0.9") | ||
+ | <syntaxhighlight2> | ||
+ | |||
+ | ::というように文字列で付け足すキーワードでpad つまり四角の大きさが余白部分の大きさを元に設定できます。0.9が上記の状態です。 |