pm4py.visualization.performance_spectrum.variants package

Submodules

pm4py.visualization.performance_spectrum.variants.neato module

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'
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[str, 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