From: Alan W. I. <ir...@be...> - 2004-08-04 16:44:32
|
On 2004-08-04 17:57+0200 WH...@bf... wrote: > hi list, > i am looking for a way to plot isolines. so far i understand > is the way plpoin3(). therefor you need z[x][y]. the problem > is i have data for x=0...6000,y=0...9000. a simple field would > become very expensive exspecialy if i have only 2500 point in total (uneven distributed). > > Is there a way to plot a "3D field" like plploin(N,x,y,z) ? > I may not properly understand your question, but I will try to answer anyway. To transform irregularly spaced data to a uniform grid take a look at http://plplot.sourceforge.net/docbook-manual/plplot-html-5.3.1/plgriddata.html for documentation and http://plplot.sourceforge.net/examples/demo21.php for an example using this function. After you have transformed your data to a uniform grid, then try http://plplot.sourceforge.net/docbook-manual/plplot-html-5.3.1/plcont.html to plot contours. http://plplot.sourceforge.net/examples/demo09.php shows contour examples. If, instead, you simply want to plot a 3D line in 3D perspective, have a look at http://plplot.sourceforge.net/docbook-manual/plplot-html-5.3.1/plline3.html and http://plplot.sourceforge.net/examples/demo18.php. Alan __________________________ Alan W. Irwin email: ir...@be... phone: 250-727-2902 Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the PLplot scientific plotting software package (plplot.org), the Yorick front-end to PLplot (yplot.sf.net), the Loads of Linux Links project (loll.sf.net), and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ |