portfolio_toolkit.plot.engine module

class portfolio_toolkit.plot.engine.PlotEngine[source]

Bases: object

Universal plotting engine that can handle different plot types

static plot(data: PlotBase, save_path: str | None = None, show: bool = True) None[source]

Plot data based on its type

Parameters:
  • data – Plot data structure inheriting from PlotBase

  • save_path – Optional path to save the plot

  • show – Whether to display the plot