Skip to content

Plot Style

PlotStyle

Bases: Enum

Enumeration of indicator plot styles.

Value Semantics
LINE Continuous line plot.
HISTOGRAM Vertical bar histogram.
DOTS Scatter plot with dots.
Source code in src/onesecondtrader/models/plot_style.py
class PlotStyle(enum.Enum):
    """
    Enumeration of indicator plot styles.

    | Value       | Semantics                          |
    |-------------|------------------------------------|
    | `LINE`      | Continuous line plot.              |
    | `HISTOGRAM` | Vertical bar histogram.            |
    | `DOTS`      | Scatter plot with dots.            |
    """

    LINE = enum.auto()
    HISTOGRAM = enum.auto()
    DOTS = enum.auto()