matplotlib.pyplot.figtext #
- matplotlib.pyplot. figtext ( x , y , s , fontdict = None , ** kwargs ) [source] #
図にテキストを追加します。
- パラメータ:
- x、yフロート
テキストを配置する位置。デフォルトでは、これは Figure 座標であり、[0, 1] で浮動小数点になります。座標系は、 transformキーワードを使用して変更できます。
- s str
テキスト文字列。
- fontdict dict、オプション
デフォルトのテキスト プロパティをオーバーライドする辞書。指定しない場合、デフォルトは によって決定され
rcParams["font.*"]ます。kwargsとして渡されたプロパティは、 fontdictで指定された対応するプロパティをオーバーライドします。
- 戻り値:
- その他のパラメータ:
- **kwargs
Textプロパティ その他のその他のテキスト パラメータ。
財産
説明
(m, n, 3) float 配列と dpi 値を取り、(m, n, 3) 配列と画像の左下隅からの 2 つのオフセットを返すフィルター関数
スカラーまたはなし
ブール
色
プロパティを持つdict
patches.FancyBboxPatchわからない
わからない
わからない
colorまたはc色
fontfamilyまたは家族{FONTNAME, 'serif', 'sans-serif', 'cursive', 'fantasy', 'monospace'}
fontpropertiesまたは font または font_propertiesfontsizeまたはサイズfloat または {'xx-small', 'x-small', 'small', 'medium', 'large', 'x-large', 'xx-large'}
fontstretchまたはストレッチ{範囲 0 ~ 1000 の数値、「超凝縮」、「超凝縮」、「凝縮」、「半圧縮」、「通常」、「半拡張」、「拡張」、「超拡張」 ', '超拡張'}
fontstyleまたはスタイル{'normal', 'italic', 'oblique'}
fontvariantまたはバリアント{'normal', 'small-caps'}
fontweightまたは重量{0 ~ 1000 の範囲の数値、'ultralight'、'light'、'normal'、'regular'、'book'、'medium'、'roman'、'semibold'、'demibold'、'demi'、 'bold', 'heavy', 'extra bold', 'black'}
力
{'左', '中央', '右'}
ブール
物体
float (フォントサイズの倍数)
力
ブール
multialignmentまたはま{'左', '右', '中央'}
ブール
None または bool または float または callable
(浮く、浮く)
ブール
float または {'vertical', 'horizontal'}
{なし、「デフォルト」、「アンカー」}
(位取り: float、長さ: float、乱数: float)
ブールまたはなし
物体
ブール
力
ブールまたはなし
verticalalignmentまたはva{'bottom', 'baseline', 'center', 'center_baseline', 'top'}
ブール
ブール
浮く
浮く
浮く
- **kwargs
こちらもご覧ください