On Feb 27, 2012, at 6:16 AM, jonasr <jonas.rueb...@web.de> wrote:
>
> Hello,
>
> i am actually trying to plot a vector field over a scalar field,
> i want to show a vector field on the intervall x=[0,1] y=[0,1]
> this works fine so far, actually i have the problem that if i plot the
> scalarfield
> via imshow() the image geht scaled by the size of the array.
> i.e. if i have a 100x100 array the image is drawn on an [0,100] intervall,
> is there any possibility to bring the image down to an [0,1 ] intevall
> independent of the array size ?
Take a look at the extent argument to imshow.
http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.imshow
You want something like extent=[0,1,0,1]
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users