pm4py.visualization.performance_spectrum.variants package#
PM4Py – A Process Mining Library for Python
Copyright (C) 2024 Process Intelligence Solutions UG (haftungsbeschränkt)
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
Submodules#
pm4py.visualization.performance_spectrum.variants.neato module#
PM4Py – A Process Mining Library for Python
Copyright (C) 2024 Process Intelligence Solutions UG (haftungsbeschränkt)
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.variants.neato.Parameters(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
Bases:
Enum
- FORMAT = 'format'#
- ACT_DIVIDER_SPACE = 'act_divider_space'#
- DATE_DIVIDER_SPACE = 'date_divider_space'#
- OVERALL_LENGTH_X = 'overall_length_x'#
- N_DIV_DATES = 'n_div_dates'#
- PERC_PATHS = 'perc_paths'#
- LAYOUT_EXT_MULTIPLIER = 'layout_ext_multiplier'#
- pm4py.visualization.performance_spectrum.variants.neato.give_color_to_line(dir: float) str [source]#
Gives a gradient color to the line
Parameters#
- dir
Intensity of the difference (number between 0 and 1; 0=min difference, 1=max difference)
Returns#
- color
Gradient color
- pm4py.visualization.performance_spectrum.variants.neato.apply(perf_spectrum: Dict[str, Any], parameters: Dict[str | Parameters, Any] | None = None) str [source]#
Construct the performance spectrum visualization
Parameters#
- perf_spectrum
Performance spectrum
- parameters
Parameters of the algorithm, including: - Parameters.FORMAT => format of the output (svg, png, …) - Parameters.ACT_DIVIDER_SPACE => space between the activities in the spectrum - Parameters.DATE_DIVIDER_SPACE => space between the lines and the dates - Parmaeters.OVERALL_LENGTH_X => length of the X-line - Parameters.N_DIV_DATES => specifies the number of intermediate dates reported - Parameters.PERC_PATHS => (if provided) filter the (overall) most long paths
Returns#
- file_path
Path containing the visualization