From: Michael V. De P. <mde...@ma...> - 2006-04-29 17:53:05
|
On Sat, Apr 29, 2006 at 09:59:14AM -0700, Andrew Straw wrote: > 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 Perhaps I'm missing something or did not explain my problem properly. I am well aware that what I want to use is imshow (or, apparently, pcolor). However, my problem is that I have all THREE values in data form, not just x and y (that is, I do not have a function to get z(x, y), but rather I have data points for z). I do not see a straightforward way to use imshow or pcolor to be able to plot this data as they want a matrix that I have no idea how to generate. Thanks, Mike > > 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 > > > > |