# pm4py.visualization.performance_spectrum package

## pm4py.visualization.performance_spectrum.visualizer module

PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

PM4Py 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 General Public License for more details.

You should have received a copy of the GNU General Public License along with PM4Py. If not, see <https://www.gnu.org/licenses/>.

class pm4py.visualization.performance_spectrum.visualizer.Variants(value)[source]

Bases: enum.Enum

An enumeration.

NEATO = <module 'pm4py.visualization.performance_spectrum.variants.neato' from 'C:\\Users\\berti\\pm4py-core\\pm4py\\visualization\\performance_spectrum\\variants\\neato.py'>
pm4py.visualization.performance_spectrum.visualizer.apply(perf_spectrum: Dict[str, Any], variant=Variants.NEATO, parameters: Optional[Dict[Any, Any]] = 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.matplotlib_view(figure: str)[source]

Views the performance spectrum using Matplotlib

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.view(figure: str)[source]

Views the performance spectrum

Parameters

figure – Path containing the visualization