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
ee3b35bc
Commit
ee3b35bc
authored
Dec 23, 2015
by
Tiago Peixoto
Browse files
graph_draw(): Flip y-direction when mplfig is given
parent
1c47cb6f
Pipeline
#84
failed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/graph_tool/draw/cairo_draw.py
View file @
ee3b35bc
...
...
@@ -1525,8 +1525,13 @@ class GraphArtist(matplotlib.artist.Artist):
ctx
.
rectangle
(
l
,
b
,
r
-
l
,
t
-
b
)
ctx
.
clip
()
# flip y direction
x
,
y
=
ungroup_vector_property
(
self
.
pos
,
[
0
,
1
])
y
.
fa
*=
-
1
y
.
fa
-=
y
.
fa
.
min
()
pos
=
group_vector_property
([
x
,
y
])
cairo_draw
(
self
.
g
,
self
.
pos
,
ctx
,
self
.
vprops
,
self
.
eprops
,
cairo_draw
(
self
.
g
,
pos
,
ctx
,
self
.
vprops
,
self
.
eprops
,
self
.
vorder
,
self
.
eorder
,
self
.
nodesfirst
,
self
.
kwargs
)
ctx
.
restore
()
...
...
Ian
@itcarroll
mentioned in issue
#261 (closed)
·
Jan 06, 2016
mentioned in issue
#261 (closed)
mentioned in issue #261
Toggle commit list
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