fill between curves on log scale?

I can fill between curves using either:

xs, ys = poly_between(x, y1, y2)
ax = gca()
ax.fill(xs,ys, facecolor='b', alpha=0.5)

or

xs = concatenate((x,x[::-1]))
ys = concatenate((y1,y2[::-1]))
p = fill(xs,ys,facecolor='b', alpha=0.5)

giving

http://www.nabble.com/file/p20038095/good.png

But, if I try to do either on a semilogy plot, I get a strange looking
combination of reflected-looking polygons.

http://www.nabble.com/file/p20038095/bad.png

Any ideas?

···


View this message in context: http://www.nabble.com/fill-between-curves-on-log-scale--tp20038095p20038095.html
Sent from the matplotlib - users mailing list archive at Nabble.com.