
The bokeh Theme class has a method
def _add_glyph_defaults(self, cls, props):
from ..models.glyphs import Glyph
if issubclass(cls, Glyph):
if hasattr(cls, "line_alpha"):
props.update(self._line_defaults)
if hasattr(cls, "fill_alpha"):
props.update(self._fill_defaults)
if hasattr(cls, "text_alpha"):
props.update(self._text_defaults)
Is this method using the existence of a line_alpha attribute in a glyph as a short hand way to detect if there a whole set of line attributes associated to that glyph? For example, the Line glyph has properties:
line_join
line_dash_offset
line_alpha
line_dash
line_cap
line_width
line_color
Does this set of properties come as a package whenever you have line_alpha? So
you can create an entry in the theme dict for line_defaults and then set defaults for all
of these attributes; they will be applied to any glyph that has “lines” as characterized by the existence of a line_alpha attribute?
Sorry for the long-winded question.

