pm4py.vis.save_vis_alignments#

pm4py.vis.save_vis_alignments(log: Union[EventLog, DataFrame], aligned_traces: List[Dict[str, Any]], file_path: str, **kwargs)[source]#

Saves an alignment table’s figure in the disk

Parameters:
  • log – event log

  • aligned_traces – results of an alignment

  • file_path (str) – target path in the disk

import pm4py

log = pm4py.read_xes('tests/input_data/running-example.xes')
net, im, fm = pm4py.discover_petri_net_inductive(log)
aligned_traces = pm4py.conformance_diagnostics_alignments(log, net, im, fm)
pm4py.save_vis_alignments(log, aligned_traces, 'output.svg')