pm4py.vis.save_vis_transition_system#
- pm4py.vis.save_vis_transition_system(transition_system: TransitionSystem, file_path: str, bgcolor: str = 'white', **kwargs)[source]#
Persists the visualization of a transition system
- Parameters:
transition_system (
TransitionSystem
) – Transition systemfile_path (
str
) – Destination pathbgcolor (
str
) – Background color of the visualization (default: white)
import pm4py transition_system = pm4py.discover_transition_system(dataframe, activity_key='concept:name', case_id_key='case:concept:name', timestamp_key='time:timestamp') pm4py.save_vis_transition_system(transition_system, 'trans_system.png')