pm4py.vis.save_vis_ocpn#
- pm4py.vis.save_vis_ocpn(ocpn: Dict[str, Any], file_path: str, bgcolor: str = 'white')[source]#
Saves the visualization of the object-centric Petri net into a file
- Parameters:
ocpn – Object-centric Petri net
file_path (
str
) – Target path of the visualizationbgcolor (
str
) – Background color of the visualization (default: white)
import pm4py ocpn = pm4py.discover_oc_petri_net(ocel) pm4py.save_vis_ocpn(ocpn, 'ocpn.png')