Skip to content

dyce.viz package reference

Shared structures for dyce visualization backends.

GraphType

Bases: StrEnum

Controls which variant of the distribution is plotted.

  • NORMAL: raw probability for each outcome
  • AT_MOST: cumulative probability \(P(X \le k)\)
  • AT_LEAST: survival probability \(P(X \ge k)\)
Source code in dyce/viz/__init__.py
36
37
38
39
40
41
42
43
44
45
46
47
class GraphType(StrEnum):
    r"""
    Controls which variant of the distribution is plotted.

    - *NORMAL*: raw probability for each outcome
    - *AT_MOST*: cumulative probability $P(X \le k)$
    - *AT_LEAST*: survival probability $P(X \ge k)$
    """

    NORMAL = auto()
    AT_MOST = auto()
    AT_LEAST = auto()