rekha.plots.LinePlotΒΆ
- class rekha.plots.LinePlot[source]ΒΆ
Create a line plot.
- Parameters:
line_width (float, default 2.0) β Width of the lines
line_style (str, default '-') β Line style (β-β, βββ, β-.β, β:β)
markers (bool, default False) β Whether to show markers at data points
marker_size (float, default 6.0) β Size of markers if enabled
**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, line_width: float = 2.0, line_style: str = '-', markers: bool = False, marker_size: float = 6.0, **kwargs)[source]ΒΆ
Create a line plot.
- Parameters:
line_width (float, default 2.0) β Width of the lines
line_style (str, default '-') β Line style (β-β, βββ, β-.β, β:β)
markers (bool, default False) β Whether to show markers at data points
marker_size (float, default 6.0) β Size of markers if enabled
**kwargs β Additional parameters passed to BasePlot