Skip to content

Commit 992e90e

Browse files
committed
enh: Add support for text_outline_width
1 parent c4ee605 commit 992e90e

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

holoviews/plotting/bokeh/annotation.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
line_properties,
2323
text_properties,
2424
)
25-
from .util import BOKEH_GE_3_2_0, date_to_integer
25+
from .util import BOKEH_GE_3_2_0, BOKEH_GE_3_9_0, date_to_integer
2626

2727
arrow_start = {'<->': NormalHead, '<|-|>': NormalHead}
2828
arrow_end = {'->': NormalHead, '-[': TeeHead, '-|>': NormalHead,
@@ -189,6 +189,7 @@ class LabelsPlot(ColorbarPlot, AnnotationPlot):
189189
'cmap',
190190
'angle',
191191
'text_outline_color',
192+
*(("text_outline_width",) if BOKEH_GE_3_9_0 else ())
192193
]
193194

194195
_nonvectorized_styles = [*base_properties, 'cmap']

holoviews/plotting/bokeh/util.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
BOKEH_GE_3_6_0 = BOKEH_VERSION >= (3, 6, 0)
5858
BOKEH_GE_3_7_0 = BOKEH_VERSION >= (3, 7, 0)
5959
BOKEH_GE_3_8_0 = BOKEH_VERSION >= (3, 8, 0)
60+
BOKEH_GE_3_9_0 = BOKEH_VERSION >= (3, 9, 0)
6061

6162

6263
if BOKEH_GE_3_8_0:

0 commit comments

Comments
 (0)