Re: [Matplotlib-users] Autoscale AxesImage after using set_data()

2011-02-08 Thread Christoph Bersch
On 08.02.2011 13:01, Thomas Lecocq wrote: > > this could work ; > > img.set_extent([0,200,0,200]) Yes, this works. Thank you. So now I use ax.relim() ax.autoscale_view() img.set_extent([0, 200, 0, 200]) From my point of view it is strange, that one has to call img.set_extent explicitely which

Re: [Matplotlib-users] Autoscale AxesImage after using set_data()

2011-02-08 Thread Christoph Bersch
On 08.02.2011 10:23, Thomas Lecocq wrote: > I would suggest calling requet_redraw() ... I could not find such a method, nor any similar one: request_redraw() or *_redraw(). I grepped through the version 1.0.1 source code. Christoph ---

[Matplotlib-users] Autoscale AxesImage after using set_data()

2011-02-08 Thread Christoph Bersch
Hi, I'm trying to autoscale an AxesImage after having set new data with set_data(). I thought, the way to do it is to use Axes.relim() followed by Axes.autoscale_view(). Unfortunately, this does not work properly both with version 0.99.3 and 1.0.1. Consider the following example (adapted from t