Commit 9bb015d7 authored by Tiago Peixoto's avatar 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
......@@ -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,
......
Markdown is supported
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