Bokeh-customising-legends
提供:Dev Guides
ボケ-凡例のカスタマイズ
プロット内のさまざまなグリフは、凡例プロパティで識別できます。デフォルトでは、プロットエリアの右上にラベルとして表示されます。 この凡例は次の属性でカスタマイズできます-
1 | legend.label_text_font | change default label font to specified font name | |
2 | legend.label_text_font_size | font size in points | |
3 | legend.location | set the label at specified location. | |
4 | legend.title | set title for legend label | |
5 | legend.orientation | set to horizontal (default) or vertical | |
6 | legend.clicking_policy | specify what should happen when legend is clicked hide: hides the glyph corresponding to legend mute: mutes the glyph corresponding to legendtd> |
例
凡例のカスタマイズのサンプルコードは次のとおりです-