From: Eric F. <ef...@ha...> - 2007-10-04 20:20:10
|
Ted Drain wrote: > John, > I think that the problem isn't doing the inversion - it's keeping it. > Calling set_xlim() to invert is fine - but it never seems to stay that > way. There is a lot of code (resizing, autoscaling, labelling, etc) > that has a tendency to flip the axis back to it's 'un-inverted' state. > The idea behind having a flag on the axis itself is so that other code > can check that easily to see what the state of the axis is. > > We do a lot of plots that require an inverted axis and we've had tons of > problems keeping the axis inverted (which is where the idea for the flag > came from). It seems like people forget that this is possible and add > code that assumes that xmin < xmax which then ends up flipping the axis > back to it's "normal" state (this happens in the aspect ratio code for > example). OK, I found an example with set_aspect(2, adjustable='datalim'). I would still like to see as many specific examples as you can provide. Eric > > Ted |