Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
graph-tool
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
43
Issues
43
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tiago Peixoto
graph-tool
Commits
96fb62d8
Commit
96fb62d8
authored
Oct 31, 2020
by
Tiago Peixoto
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
graph_draw(): fix bug with pen_width
Fix issue with a global pen_width given for vertices.
parent
d989f401
Pipeline
#740
passed with stage
in 62 minutes and 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/graph_tool/draw/cairo_draw.py
src/graph_tool/draw/cairo_draw.py
+3
-2
No files found.
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
)
...
...
Tiago Peixoto
@count0
mentioned in merge request
!39 (closed)
·
Oct 31, 2020
mentioned in merge request
!39 (closed)
mentioned in merge request !39
Toggle commit list
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