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
34
35
36
37
38
39
40
41
42
43
44
45
class GraphType(StrEnum):
    r"""
    Controls which variant of the distribution is plotted.

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

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