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
78337816
Commit
78337816
authored
Oct 15, 2015
by
Tiago Peixoto
Browse files
Fix bug in graph_draw() with new numpy
parent
19c9b394
Pipeline
#52
passed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/graph_tool/draw/cairo_draw.py
View file @
78337816
...
...
@@ -1020,7 +1020,7 @@ def graph_draw(g, pos=None, vprops=None, eprops=None, vorder=None, eorder=None,
if
"pen_width"
in
eprops
and
"marker_size"
not
in
eprops
:
pw
=
eprops
[
"pen_width"
]
if
isinstance
(
pw
,
PropertyMap
):
pw
=
pw
.
copy
()
pw
=
pw
.
copy
(
"double"
)
pw
.
fa
*=
2.75
eprops
[
"marker_size"
]
=
pw
else
:
...
...
@@ -1029,7 +1029,7 @@ def graph_draw(g, pos=None, vprops=None, eprops=None, vorder=None, eorder=None,
if
"text"
in
eprops
and
"text_distance"
not
in
eprops
and
"pen_width"
in
eprops
:
pw
=
eprops
[
"pen_width"
]
if
isinstance
(
pw
,
PropertyMap
):
pw
=
pw
.
copy
()
pw
=
pw
.
copy
(
"double"
)
pw
.
fa
*=
2
eprops
[
"text_distance"
]
=
pw
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