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
26553a42
Commit
26553a42
authored
Sep 13, 2015
by
Tiago Peixoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug in cairo_draw() with vertex_index as attribute
parent
afae7aa1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/graph_tool/draw/cairo_draw.py
src/graph_tool/draw/cairo_draw.py
+4
-1
No files found.
src/graph_tool/draw/cairo_draw.py
View file @
26553a42
...
...
@@ -402,7 +402,10 @@ def _convert(attr, val, cmap, pmap_default=False, g=None, k=None):
try
:
vrange
=
[
val
.
fa
.
min
(),
val
.
fa
.
max
()]
except
ValueError
:
val_
=
val
.
copy
(
"int64_t"
)
#vertex index
vrange
=
[
int
(
g
.
vertex
(
0
,
use_index
=
False
)),
int
(
g
.
vertex
(
g
.
num_vertices
()
-
1
,
use_index
=
False
))]
cnorm
=
matplotlib
.
colors
.
Normalize
(
vmin
=
vrange
[
0
],
vmax
=
vrange
[
1
])
g
=
val
.
get_graph
()
...
...
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