shyft.dashboard.examples.figure_legend

Classes

FigureLegend(thread_pool[, app_kwargs])

Init of base app

MultiTsAdapterSine(unit_to_decorate, time_range)

TsAdapterSine(unit_to_decorate, time_range)

class shyft.dashboard.examples.figure_legend.TsAdapterSine(unit_to_decorate, time_range, point_interpretation=None, async_on=False)[source]

Bases: TsAdapter

Parameters:
__init__(unit_to_decorate, time_range, point_interpretation=None, async_on=False)[source]
Parameters:
Return type:

None

property ts
__call__(*, time_axis, unit)[source]

Call self as a function.

Return type:

Quantity[TsVector]

class shyft.dashboard.examples.figure_legend.MultiTsAdapterSine(unit_to_decorate, time_range, point_interpretation=None, async_on=False)[source]

Bases: TsAdapter

Parameters:
__init__(unit_to_decorate, time_range, point_interpretation=None, async_on=False)[source]
Parameters:
Return type:

None

property tsv: TsVector
__call__(*, time_axis, unit)[source]

Call self as a function.

Return type:

Quantity[TsVector]

class shyft.dashboard.examples.figure_legend.FigureLegend(thread_pool, app_kwargs=None)[source]

Bases: AppBase

Init of base app

Parameters:
  • thread_pool – Optional thread pool used for async calls within the app

  • app_kwargs (Dict[str, Any] | None) – Optional keyword arguments provided to the app through the start_bokeh_apps methods

__init__(thread_pool, app_kwargs=None)[source]

Init of base app

Parameters:
  • thread_pool – Optional thread pool used for async calls within the app

  • app_kwargs (Dict[str, Any] | None) – Optional keyword arguments provided to the app through the start_bokeh_apps methods

property name: str

This property returns the name of the app

get_layout(doc, logger=None)[source]

This function returns the full page layout for the app

Parameters:
  • doc (bokeh.document.Document)

  • logger (LoggerBox | None)

Return type:

bokeh.layouts.LayoutDOM