pm4py.visualization.performance_spectrum.variants package

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

An enumeration.

ACT_DIVIDER_SPACE = 'act_divider_space'
DATE_DIVIDER_SPACE = 'date_divider_space'
FORMAT = 'format'
LAYOUT_EXT_MULTIPLIER = 'layout_ext_multiplier'
N_DIV_DATES = 'n_div_dates'
OVERALL_LENGTH_X = 'overall_length_x'
PERC_PATHS = 'perc_paths'
pm4py.visualization.performance_spectrum.variants.neato.apply(perf_spectrum: Dict[str, Any], parameters: Optional[Dict[Union[str, pm4py.visualization.performance_spectrum.variants.neato.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

Path containing the visualization

Return type

file_path

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

Gradient color

Return type

color

Module contents

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