Skip to content

Visualisation

Requires matplotlib, networkx, and graphviz (all installed automatically).

Save to file

import ergminer

ergminer.save_vis_erg(
    erg,
    "output/erg.png",          # .png or .svg
    show_probabilities=True,
    show_distributions=True,
    show_guards=True,
    title="My ERG",
)

Interactive window

ergminer.view_erg(erg)

See ergminer.vis for full API details.