pm4py.visualization.performance_spectrum.visualizer module#

PM4Py – A Process Mining Library for Python Copyright (C) 2026 Process Intelligence Solutions GmbH

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see this software project’s root or visit <https://www.gnu.org/licenses/>.

Website: https://processintelligence.solutions Contact: info@processintelligence.solutions

class pm4py.visualization.performance_spectrum.visualizer.Variants(*values)[source]#

Bases: Enum

NEATO = <module 'pm4py.visualization.performance_spectrum.variants.neato' from '/home/javert/ALE/pm4py/pm4py/visualization/performance_spectrum/variants/neato.py'>#
pm4py.visualization.performance_spectrum.visualizer.apply(perf_spectrum: Dict[str, Any], variant=Variants.NEATO, parameters: Dict[Any, Any] | None = None) → str[source]#

Construct the performance spectrum visualization

Parameters:
  • perf_spectrum – Performance spectrum

  • variant – Variant of the visualization to use: - NEATO: using the Graphviz Neato layouter

  • parameters – Variant-specific parameters

Returns:

Path containing the visualization

Return type:

file_path

pm4py.visualization.performance_spectrum.visualizer.view(figure: str)[source]#

Views the performance spectrum

Parameters:

figure – Path containing the visualization

pm4py.visualization.performance_spectrum.visualizer.save(figure: str, output_file_path: str)[source]#

Saves the performance spectrum at the specified path

Parameters:
  • figure – Path containing the visualization

  • output_file_path – Path into which the image should be saved

pm4py.visualization.performance_spectrum.visualizer.serialize(figure: str)[source]#

Serializes the performance spectrum visualization

Parameters:

figure – Path containing the visualization

pm4py.visualization.performance_spectrum.visualizer.matplotlib_view(figure: str)[source]#

Views the performance spectrum using Matplotlib

Parameters:

figure – Path containing the visualization