pm4py.vis.save_vis_performance_spectrum#
- pm4py.vis.save_vis_performance_spectrum(log: EventLog | DataFrame, activities: List[str], file_path: str, activity_key: str = 'concept:name', timestamp_key: str = 'time:timestamp', case_id_key: str = 'case:concept:name', bgcolor: str = 'white', graph_title: str | None = None, **kwargs)[source]#
Saves the visualization of the performance spectrum to a file.
Refer to: Denisov, Vadim, et al. “The Performance Spectrum Miner: Visual Analytics for Fine-Grained Performance Analysis of Processes.” BPM (Dissertation/Demos/Industry). 2018.
- Parameters:
log – Event log
activities – List of activities used to build the performance spectrum
file_path (
str) – Destination path (including the extension)activity_key (
str) – Attribute to be used for the activitytimestamp_key (
str) – Attribute to be used for the timestampcase_id_key (
str) – Attribute to be used as case identifierbgcolor (
str) – Background color of the visualization (default: white)graph_title – Sets the title of the visualization (if provided)
import pm4py pm4py.save_vis_performance_spectrum(dataframe, ['Act. A', 'Act. C', 'Act. D'], 'perf_spec.png', activity_key='concept:name', case_id_key='case:concept:name', timestamp_key='time:timestamp')