portfolio_toolkit.plot package
Submodules
portfolio_toolkit.plot.bar_chart_data module
- class portfolio_toolkit.plot.bar_chart_data.BarChartData(title: str, grid: bool = True, figsize: tuple = (10, 6), labels: ~typing.List[str] = <factory>, values: ~typing.List[float] = <factory>, xlabel: str = 'Categories', ylabel: str = 'Values', colors: ~typing.List[str] | None = None, horizontal: bool = False)[source]
Bases:
PlotBase
Data structure for bar charts
portfolio_toolkit.plot.engine module
portfolio_toolkit.plot.line_chart_data module
- class portfolio_toolkit.plot.line_chart_data.LineChartData(title: str, grid: bool = True, figsize: tuple = (10, 6), x_data: ~typing.List[~typing.Any] = <factory>, y_data: ~typing.List[~typing.List[float]] = <factory>, labels: ~typing.List[str] = <factory>, xlabel: str = 'X Axis', ylabel: str = 'Y Axis', colors: ~typing.List[str] | None = None, linestyles: ~typing.List[str] | None = None, markers: ~typing.List[str] | None = None)[source]
Bases:
PlotBase
Data structure for line charts
- __init__(title: str, grid: bool = True, figsize: tuple = (10, 6), x_data: ~typing.List[~typing.Any] = <factory>, y_data: ~typing.List[~typing.List[float]] = <factory>, labels: ~typing.List[str] = <factory>, xlabel: str = 'X Axis', ylabel: str = 'Y Axis', colors: ~typing.List[str] | None = None, linestyles: ~typing.List[str] | None = None, markers: ~typing.List[str] | None = None) None
portfolio_toolkit.plot.pie_chart_data module
- class portfolio_toolkit.plot.pie_chart_data.PieChartData(title: str, grid: bool = True, figsize: tuple = (10, 6), labels: ~typing.List[str] = <factory>, values: ~typing.List[float] = <factory>, colors: ~typing.List[str] | None = None, autopct: str = '%1.1f%%', startangle: float = 90, explode: ~typing.List[float] | None = None)[source]
Bases:
PlotBase
Data structure for pie charts
portfolio_toolkit.plot.plot_assets module
portfolio_toolkit.plot.plot_base module
portfolio_toolkit.plot.scatter_plot_data module
- class portfolio_toolkit.plot.scatter_plot_data.ScatterPlotData(title: str, grid: bool = True, figsize: tuple = (10, 6), x_data: ~typing.List[float] = <factory>, y_data: ~typing.List[float] = <factory>, labels: ~typing.List[str] | None = None, xlabel: str = 'X Axis', ylabel: str = 'Y Axis', colors: ~typing.List[str] | None = None, sizes: ~typing.List[float] | None = None, alpha: float = 0.7)[source]
Bases:
PlotBase
Data structure for scatter plots
- __init__(title: str, grid: bool = True, figsize: tuple = (10, 6), x_data: ~typing.List[float] = <factory>, y_data: ~typing.List[float] = <factory>, labels: ~typing.List[str] | None = None, xlabel: str = 'X Axis', ylabel: str = 'Y Axis', colors: ~typing.List[str] | None = None, sizes: ~typing.List[float] | None = None, alpha: float = 0.7) None
Module contents
- class portfolio_toolkit.plot.PlotBase(title: str, grid: bool = True, figsize: tuple = (10, 6))[source]
Bases:
ABC
Base class for all plot data structures
- class portfolio_toolkit.plot.PieChartData(title: str, grid: bool = True, figsize: tuple = (10, 6), labels: ~typing.List[str] = <factory>, values: ~typing.List[float] = <factory>, colors: ~typing.List[str] | None = None, autopct: str = '%1.1f%%', startangle: float = 90, explode: ~typing.List[float] | None = None)[source]
Bases:
PlotBase
Data structure for pie charts
- class portfolio_toolkit.plot.LineChartData(title: str, grid: bool = True, figsize: tuple = (10, 6), x_data: ~typing.List[~typing.Any] = <factory>, y_data: ~typing.List[~typing.List[float]] = <factory>, labels: ~typing.List[str] = <factory>, xlabel: str = 'X Axis', ylabel: str = 'Y Axis', colors: ~typing.List[str] | None = None, linestyles: ~typing.List[str] | None = None, markers: ~typing.List[str] | None = None)[source]
Bases:
PlotBase
Data structure for line charts
- __init__(title: str, grid: bool = True, figsize: tuple = (10, 6), x_data: ~typing.List[~typing.Any] = <factory>, y_data: ~typing.List[~typing.List[float]] = <factory>, labels: ~typing.List[str] = <factory>, xlabel: str = 'X Axis', ylabel: str = 'Y Axis', colors: ~typing.List[str] | None = None, linestyles: ~typing.List[str] | None = None, markers: ~typing.List[str] | None = None) None
- class portfolio_toolkit.plot.BarChartData(title: str, grid: bool = True, figsize: tuple = (10, 6), labels: ~typing.List[str] = <factory>, values: ~typing.List[float] = <factory>, xlabel: str = 'Categories', ylabel: str = 'Values', colors: ~typing.List[str] | None = None, horizontal: bool = False)[source]
Bases:
PlotBase
Data structure for bar charts
- class portfolio_toolkit.plot.ScatterPlotData(title: str, grid: bool = True, figsize: tuple = (10, 6), x_data: ~typing.List[float] = <factory>, y_data: ~typing.List[float] = <factory>, labels: ~typing.List[str] | None = None, xlabel: str = 'X Axis', ylabel: str = 'Y Axis', colors: ~typing.List[str] | None = None, sizes: ~typing.List[float] | None = None, alpha: float = 0.7)[source]
Bases:
PlotBase
Data structure for scatter plots
- __init__(title: str, grid: bool = True, figsize: tuple = (10, 6), x_data: ~typing.List[float] = <factory>, y_data: ~typing.List[float] = <factory>, labels: ~typing.List[str] | None = None, xlabel: str = 'X Axis', ylabel: str = 'Y Axis', colors: ~typing.List[str] | None = None, sizes: ~typing.List[float] | None = None, alpha: float = 0.7) None