pm4py.visualization.common package

Submodules

pm4py.visualization.common.gview module

pm4py.visualization.common.gview.matplotlib_view(gviz)[source]

Views the diagram using Matplotlib

Parameters

gviz – Graphviz

pm4py.visualization.common.gview.serialize(gviz: graphviz.dot.Digraph) → bytes[source]

Serialize the image rendered from a Graphviz object

Parameters

gviz – Graphviz object

Returns

String containing the picture

Return type

bytes_string

pm4py.visualization.common.gview.serialize_dot(gviz: graphviz.dot.Digraph) → bytes[source]

Serialize the DOT instructions of a Graphviz object

Parameters

gviz – Graphviz object

Returns

String containing the DOT instructions

Return type

bytes_string

pm4py.visualization.common.gview.view(gviz)[source]

View the diagram

Parameters

gviz – GraphViz diagram

pm4py.visualization.common.save module

pm4py.visualization.common.save.save(gviz, output_file_path)[source]

Save the diagram

Parameters
  • gviz – GraphViz diagram

  • output_file_path – Path where the GraphViz output should be saved

pm4py.visualization.common.utils module

pm4py.visualization.common.visualizer module

pm4py.visualization.common.visualizer.save(gviz, output_file_path)[source]

Save the diagram

Parameters
  • gviz – GraphViz diagram

  • output_file_path – Path where the GraphViz output should be saved

pm4py.visualization.common.visualizer.view(gviz)[source]

View the diagram

Parameters

gviz – GraphViz diagram

Module contents