pm4py.visualization.performance_spectrum.variants package#

This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de).

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/>.

Submodules#

pm4py.visualization.performance_spectrum.variants.neato module#

This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de).

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.variants.neato.Parameters(value)[source]#

Bases: Enum

An enumeration.

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: Optional[Dict[Union[str, Parameters], Any]] = 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