pm4py.vis.view_alignments#

pm4py.vis.view_alignments(log: EventLog | DataFrame, aligned_traces: List[Dict[str, Any]], format: str = 'png')[source]#

Views the alignment table as a figure

Parameters:
  • log – event log

  • aligned_traces – results of an alignment

  • format (str) – format of the visualization (default: png)

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.view_alignments(log, aligned_traces, format='svg')