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

x_data: List[float]
y_data: List[float]
labels: List[str] | None = None
xlabel: str = 'X Axis'
ylabel: str = 'Y Axis'
colors: List[str] | None = None
sizes: List[float] | None = None
alpha: float = 0.7
get_plot_type() str[source]

Return the type of plot

validate() bool[source]

Validate that data is consistent

__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
title: str