pm4py.visualization.performance_spectrum.variants.neato module#

class pm4py.visualization.performance_spectrum.variants.neato.Parameters(*values)[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'#
ENABLE_GRAPH_TITLE = 'enable_graph_title'#
GRAPH_TITLE = 'graph_title'#
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

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:

Path containing the visualization

Return type:

file_path