Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
OpenGEODE
Commits
30da64c1
Commit
30da64c1
authored
Jan 22, 2015
by
Maxime Perrotin
Browse files
Improve the statechart rendering
Force graphviz to use more curved edges, and forbid node overlaps
parent
05ba8fbf
Changes
1
Hide whitespace changes
Inline
Side-by-side
opengeode/Statechart.py
View file @
30da64c1
...
...
@@ -372,8 +372,8 @@ def render_statechart(scene, graph=None, keep_pos=False):
# Compute all the coordinates (self-modifying function)
# Force the fontsize of the nodes to be 12, as in OpenGEODE
# use -n2 below to keep user-specified node coordinates
graph
.
layout
(
prog
=
'neato'
,
args
=
'-Nfontsize=12, -Gsplines=
true
-Gsep=1 '
'-Gstart=random10 '
graph
.
layout
(
prog
=
'neato'
,
args
=
'-Nfontsize=12, -Gsplines=
curved
-Gsep=1 '
'-Gstart=random10
-Goverlap=false
'
'-Nstyle=rounded -Nshape=record -Elen=1.5 {kp}'
.
format
(
kp
=
'-n1'
if
keep_pos
else
''
))
# bb is not visible directly - extract it from the low level api:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment