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
Malte R
graph-tool
Commits
96fb62d8
Commit
96fb62d8
authored
Oct 31, 2020
by
Tiago Peixoto
Browse files
graph_draw(): fix bug with pen_width
Fix issue with a global pen_width given for vertices.
parent
d989f401
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph_tool/draw/cairo_draw.py
View file @
96fb62d8
...
...
@@ -1341,8 +1341,9 @@ def fit_to_view_ink(g, pos, output_size, vprops, eprops, adjust_aspect=False,
else
:
lw
=
max
(
lw
,
0.1
)
return
lw
vprops
=
dict
(
vprops
,
pen_width
=
min_lw
(
vprops
.
get
(
"pen_width"
)))
eprops
=
dict
(
eprops
,
pen_width
=
min_lw
(
eprops
.
get
(
"pen_width"
)))
vprops
=
dict
(
vprops
,
pen_width
=
min_lw
(
vprops
.
get
(
"pen_width"
,
0.
)))
eprops
=
dict
(
eprops
,
pen_width
=
min_lw
(
eprops
.
get
(
"pen_width"
,
0.
)))
cairo_draw
(
g
,
pos
,
cr
,
vprops
,
eprops
)
...
...
Write
Preview
Markdown
is supported
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