akkudoktoreos.server.dash.bokeh.bokey_apply_theme_to_plot

akkudoktoreos.server.dash.bokeh.bokey_apply_theme_to_plot(plot: Plot, dark: bool) None

Apply a dark or light theme to a Bokeh plot.

This function modifies the appearance of a Bokeh Plot object in-place, adjusting background, border, title, axis, and grid colors based on the dark parameter.

Parameters:
  • plot (Plot) – The Bokeh plot to style.

  • dark (bool) – Whether to apply the dark theme (True) or light theme (False).

Notes

  • This only affects the plot passed in; it does not change other plots in the same document.