rekha.plots.ScatterPlotΒΆ
- class rekha.plots.ScatterPlot[source]ΒΆ
Create a scatter plot.
- Parameters:
trendline (str, optional) β Type of trendline (βolsβ for linear regression)
color_continuous_scale (str, optional) β Colormap for numerical color mapping
size_max (float, default 200) β Maximum point size for numerical sizing
point_size (float, default 100) β Base point size
alpha (float, default 0.7) β Point transparency
**kwargs β Additional parameters passed to BasePlot
Methods
add_annotation
(text, x, y, **kwargs)Add annotation to the plot.
get_axes
()Get all axes from the figure.
save
(filename[, format, transparent])Save the plot to file with optimized settings for different use cases.
save_all_formats
(base_name, **kwargs)Save plot in all common formats for different use cases.
show
()Display the plot in the current output (Jupyter notebook, script, etc.).
show_legend
()Manually show the legend with appropriate styling.
update_layout
(**kwargs)Update plot layout - matplotlib style.
- __init__(data=None, x=None, y=None, color: str | None = None, size: str | List | ndarray | None = None, shape: str | None = None, trendline: str | None = None, color_continuous_scale: str | None = None, size_max: float = 200, point_size: float = 100, alpha: float = 0.7, **kwargs)[source]ΒΆ
Create a scatter plot.
- Parameters:
trendline (str, optional) β Type of trendline (βolsβ for linear regression)
color_continuous_scale (str, optional) β Colormap for numerical color mapping
size_max (float, default 200) β Maximum point size for numerical sizing
point_size (float, default 100) β Base point size
alpha (float, default 0.7) β Point transparency
**kwargs β Additional parameters passed to BasePlot