ergminer.vis
ergminer.save_vis_erg(erg, file_path, show_probabilities=True, show_distributions=True, show_guards=True, title=None, figsize=(18, 12))
Render erg and save it to file_path.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
erg
|
'ERG'
|
The |
required |
file_path
|
str
|
Destination file path (e.g. |
required |
show_probabilities
|
bool
|
Annotate arcs with routing probabilities. |
True
|
show_distributions
|
bool
|
Annotate arcs with delay distributions. |
True
|
show_guards
|
bool
|
Show guard conditions on arcs. |
True
|
title
|
Optional[str]
|
Optional title for the plot. |
None
|
figsize
|
tuple
|
Matplotlib figure size |
(18, 12)
|
Source code in src\ergminer\vis.py
ergminer.view_erg(erg, show_probabilities=True, show_distributions=True, show_guards=True, title=None, format='png')
Render erg and open it in the OS default image viewer.
Creates a temporary file, renders the ERG to it, then opens it with the system default application for that file type.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
erg
|
'ERG'
|
The |
required |
show_probabilities
|
bool
|
Annotate arcs with routing probabilities. |
True
|
show_distributions
|
bool
|
Annotate arcs with delay distributions. |
True
|
show_guards
|
bool
|
Show guard conditions on arcs. |
True
|
title
|
Optional[str]
|
Optional title for the plot. |
None
|
format
|
str
|
Image format ( |
'png'
|