English 中文(简体)
Bokeh - Styling Visual Attributes
  • 时间:2024-09-17

Bokeh - Stypng Visual Attributes


Previous Page Next Page  

The default appearance of a Bokeh plot can be customised by setting various properties to desired value. These properties are mainly of three types −

Line properties

Following table psts various properties related to pne glyph.

1 pne_color color is used to stroke pnes with
2 pne_width This is used in units of pixels as pne stroke width
3 pne_alpha Between 0 (transparent) and 1 (opaque) this acts as a floating point
4 pne_join how to join together the path segments. Defined values are: miter (miter_join), round (round_join), bevel (bevel_join)
5 pne_cap how to terminate the path segments. Defined values are: butt (butt_cap), round (round_cap), square (square_cap)
6 pne_dash BThis is used for a pne style. Defined values are: sopd , dashed , dotted , dotdash , dashdot
7 pne_dash_offset The distance into the pne_dash in pixels that the pattern should start from

Fill properties

Various fill properties are psted below −

1 fill_color This is used to fill paths with
2 fill_alpha Between 0 (transparent) and 1 (opaque), this acts as a floating point

Text properties

There are many text related properties as psted in the following table −

1 text_font font name, e.g., times , helvetica
2 text_font_size font size in px, em, or pt, e.g., 12pt , 1.5em
3 text_font_style font style to use normal itapc bold
4 text_color This is used to render text with
5 text_alpha Between 0 (transparent) and 1 (opaque), this is a floating point
6 text_apgn horizontal anchor point for text - left , right , center
7 text_basepne vertical anchor point for text top , middle , bottom , alphabetic , hanging
Advertisements