empty_figure#

RAPDOR.plots.empty_figure(annotation: str = None, font_color: str = None)#

Creates an empty Plotly figure with optional centered annotation text.

This is useful as a placeholder figure in dashboards or when no data is available to display.

Parameters:
  • annotation (str, optional) – A string to display as a centered annotation in the figure. If None, no annotation is shown.

  • font_color (str, optional) – Font color to use for the annotation and layout text (e.g., “#333333”). If None, default color is used.

Returns:

An empty Plotly figure with customized layout and optional annotation.

Return type:

plotly.graph_objects.Figure

Example

fig = empty_figure(annotation=”No data available”, font_color=”#555”) fig.show()