- pm4py.vis.save_vis_performance_spectrum(log: Union[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')[source]#
Saves the visualization of the performance spectrum to a file
The performance spectrum is a novel visualization of the performance of the process of the time elapsed between different activities in the process executions. The performance spectrum has initially been described in:
Denisov, Vadim, et al. “The Performance Spectrum Miner: Visual Analytics for Fine-Grained Performance Analysis of Processes.” BPM (Dissertation/Demos/Industry). 2018.
log – Event log
activities – List of activities (in order) that is used to build the performance spectrum
str) – Destination path (including the extension)
str) – attribute to be used for the activity
str) – attribute to be used for the timestamp
str) – attribute to be used as case identifier
str) – Background color of the visualization (default: white)
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')
Deprecated since version 2.3.0: This will be removed in 3.0.0. the performance spectrum visualization will be removed in a future release.