From: Eric F. <ef...@ha...> - 2006-04-29 18:42:31
|
Michael, How easy it is to do this depends on your ascii file format, and how the data are organized in it. Are the points in order? e.g. x0, y0, z00 x0, y1, z01 x0, y2, z02 x1, y0, z10 x1, y1, z11 x1, y2, z12 Are the values space-delimited, or comma-delimited, or in some other format? Is the grid uniform in the sense that all the x-intervals are the same and all the y-intervals are the same? Eric 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 |