Skip to content

Commit 4500e54

Browse files
Merge remote-tracking branch 'upstream/hotfixes' into release
2 parents c9b64e3 + 68946f0 commit 4500e54

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

pm4py/visualization/ocel/ocpn/variants/wo_decoration.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff 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\nc=%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\nc=%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

0 commit comments

Comments
 (0)