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 requires knowing the exact limits, 
although I want to :autoscale_.

And I find the documentation of the 'extent' keyword for Axes.imshow() 
<http://matplotlib.sourceforge.net/api/axes_api.html#matplotlib.axes.Axes.imshow>
 
not clear in this respect:

extent: [ None | scalars (left, right, bottom, top) ]
     Data limits for the axes. The default assigns zero-based row, 
column indices to the x, y centers of the pixels.

...whatever that exactly means :-)

Christoph

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to