File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
pm4py/visualization/ocel/ocpn/variants Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -149,12 +149,14 @@ def apply(
149149 # case
150150 if place in all_places_diagn :
151151 this_diagn = all_places_diagn [place ]
152- place_label = "p=%d m=%d\n c=%d r=%d" % (
153- this_diagn ["p" ],
154- this_diagn ["m" ],
155- this_diagn ["c" ],
156- this_diagn ["r" ],
157- )
152+ if place_shape == "circle" :
153+ place_shape = "ellipse"
154+ place_label = "p=%d m=%d\n c=%d r=%d" % (
155+ this_diagn ["p" ],
156+ this_diagn ["m" ],
157+ this_diagn ["c" ],
158+ this_diagn ["r" ],
159+ )
158160
159161 viz .node (
160162 places [place ],
@@ -211,6 +213,7 @@ def apply(
211213 label = arc_label ,
212214 )
213215
216+ viz .attr ('graph' , nodesep = '0.1' , ranksep = '0.2' )
214217 viz .attr (rankdir = rankdir )
215218 viz .format = image_format .replace ("html" , "plain-ext" )
216219
You can’t perform that action at this time.
0 commit comments