Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tiago Peixoto
graph-tool
Commits
b18d327a
Commit
b18d327a
authored
Aug 07, 2009
by
Tiago Peixoto
Browse files
Fix returned position scale in graph_draw()
This is a workaround for a behaviour of graphviz which is not well understood.
parent
25e31f3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph_tool/draw/__init__.py
View file @
b18d327a
...
...
@@ -421,6 +421,10 @@ def graph_draw(g, pos=None, size=(15, 15), pin=False, layout= "neato",
else
:
gv
.
render
(
gvg
,
output_format
,
output
)
# I don't get this, but it seems necessary
pos
[
0
].
get_array
()[:]
/=
100
pos
[
1
].
get_array
()[:]
/=
100
if
returngv
:
return
pos
,
gv
else
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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