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
9bb015d7
Commit
9bb015d7
authored
Jan 06, 2016
by
Tiago Peixoto
Browse files
graph_draw(): Improve flipping of y-direction when mplfig is being used
This fixes issue #261
parent
ca0d64e1
Pipeline
#95
failed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/graph_tool/draw/cairo_draw.py
View file @
9bb015d7
...
...
@@ -1527,8 +1527,8 @@ class GraphArtist(matplotlib.artist.Artist):
# flip y direction
x
,
y
=
ungroup_vector_property
(
self
.
pos
,
[
0
,
1
])
y
.
fa
*=
-
1
y
.
fa
-=
y
.
fa
.
min
()
l
,
t
,
r
,
b
=
ctx
.
clip_extents
()
y
.
fa
=
b
+
t
-
y
.
fa
pos
=
group_vector_property
([
x
,
y
])
cairo_draw
(
self
.
g
,
pos
,
ctx
,
self
.
vprops
,
self
.
eprops
,
...
...
Tiago Peixoto
@count0
mentioned in issue
#261 (closed)
·
Jan 06, 2016
mentioned in issue
#261 (closed)
mentioned in issue #261
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