From: Andrew S. <str...@as...> - 2006-04-29 16:59:17
|
If you data is regularly spaced, you can just use imshow or pcolor. If it's not regularaly spaced, see http://www.scipy.org/Wiki/Cookbook/Matplotlib/Gridding_irregularly_spaced_data Michael V. De Palatis wrote: >Hi all, > >I am trying to use imshow to plot an image from some data. Basically, >I have a list of x, y, and z values, and I want to plot z as a >function of x and y. > >Unfortunately, most of the examples do this as far as I can >tell. Instead, they (at most) take a list of x and y then make a >*function* z out of that, and plot z, rather than having actual data >from a file for all three. > >The only one that does seem to do something like this seems to be >dependent on a binary file, which unfortunately is not the format I >have the data in. Sure, I could convert the very large files I already >have into binary, but in the long run, I think it would be better for >me to be able to simply use the ASCII data that I am provided with >since that can't be changed. > >Is there an easy way to do this, or will I just have to convert the >files? > >Thanks, > >Mike > > >------------------------------------------------------- >Using Tomcat but need to do more? Need to support web services, security? >Get stuff done quickly with pre-integrated technology to make your job easier >Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >_______________________________________________ >Matplotlib-users mailing list >Mat...@li... >https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > |