VerticalTwoPanelPlotLayout#

class openstef_models.explainability.plotters.common.VerticalTwoPanelPlotLayout[source]

Bases: object

Create vertically aligned subplots.

static make_two_panel_time_figure() → Figure[source]

Create the vertically aligned subplot layout for two subplots.

Return type:

Figure

static add_top_panel_line_plot(fig: go.Figure, x: pd.Index, y: pd.Series, *, name: str = 'Prediction', show_legend: bool = False) → go.Figure[source]

Add a lineplot. Can be used to add a top panel prediction line plot.

Parameters:
Return type:

Figure