pm4py.vis.view_performance_spectrum#
- pm4py.vis.view_performance_spectrum(log: EventLog | DataFrame, activities: List[str], format: str = 'png', 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)[source]#
Displays the performance spectrum.
The performance spectrum is a novel visualization of the performance of the process, showing time elapsed between different activities. 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 (in order) used to build the performance spectrum
format (
str) – Format of the visualization (png, svg …)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.view_performance_spectrum(dataframe, ['Act. A', 'Act. C', 'Act. D'], format='svg', activity_key='concept:name', case_id_key='case:concept:name', timestamp_key='time:timestamp')