shyft.dashboard.examples.figure_legend

Classes

FigureLegend(thread_pool[, app_kwargs])

MultiTsAdapterSine(unit_to_decorate, ...[, ...])

TsAdapterSine(unit_to_decorate, time_range, ...)

class shyft.dashboard.examples.figure_legend.TsAdapterSine(unit_to_decorate: str | ~pint.unit.build_unit_class.<locals>.Unit, time_range: ~shyft.time_series._time_series.UtcPeriod, point_interpretation: ~shyft.time_series._time_series.point_interpretation_policy = None, async_on=False)[source]

Bases: TsAdapter

__init__(unit_to_decorate: str | ~pint.unit.build_unit_class.<locals>.Unit, time_range: ~shyft.time_series._time_series.UtcPeriod, point_interpretation: ~shyft.time_series._time_series.point_interpretation_policy = None, async_on=False) None[source]
property ts
__call__(*, time_axis, unit) Quantity[TsVector][source]

Call self as a function.

class shyft.dashboard.examples.figure_legend.MultiTsAdapterSine(unit_to_decorate: str | ~pint.unit.build_unit_class.<locals>.Unit, time_range: ~shyft.time_series._time_series.UtcPeriod, point_interpretation: ~shyft.time_series._time_series.point_interpretation_policy = None, async_on=False)[source]

Bases: TsAdapter

__init__(unit_to_decorate: str | ~pint.unit.build_unit_class.<locals>.Unit, time_range: ~shyft.time_series._time_series.UtcPeriod, point_interpretation: ~shyft.time_series._time_series.point_interpretation_policy = None, async_on=False) None[source]
property tsv: TsVector
__call__(*, time_axis, unit) Quantity[TsVector][source]

Call self as a function.

class shyft.dashboard.examples.figure_legend.FigureLegend(thread_pool, app_kwargs: Dict[str, Any] | None = None)[source]

Bases: AppBase

__init__(thread_pool, app_kwargs: Dict[str, Any] | None = None)[source]

Init of base app

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

  • app_kwargs – 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: bokeh.document.Document, logger: LoggerBox | None = None) bokeh.layouts.LayoutDOM[source]

This function returns the full page layout for the app