Commit ee3b35bc authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

graph_draw(): Flip y-direction when mplfig is given

parent 1c47cb6f
Pipeline #84 failed with stage
......@@ -1525,8 +1525,13 @@ class GraphArtist(matplotlib.artist.Artist):
ctx.rectangle(l, b, r-l, t-b)
# 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)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment