From: Alan W. I. <ir...@be...> - 2003-09-11 16:09:35
|
On 2003-09-11 08:49-0500 Herng-Jeng Jou wrote: > BTW, it is my understanding that Plplot constructs contour plot only from > gridded data, not from ungridded data. That's an easy question to answer. For 5.2.1, plgriddata gives us a powerful capability to transform from ungridded data to the gridded data required for the PLplot routines that actually plot. From the 5.2.1 announcement at http://plplot.sourceforge.net/announce-plplot-5.2.1.html: "plgriddata. Generate grid data for 3D plots from irregularly sampled data." "3D" here should be interpreted in its broadest sense; any plot (contour, 3D perspective, shade, 3D shade, etc.) which involves 3D data. plgriddata is documented in http://plplot.sourceforge.net/resources/docbook-manual/plplot-html-5.2.1.cvs.20030828/plgriddata.html. One example of its use is given in example 21 which involves 3D perspective plots and 3D shaded plots, but it should be easy to adapt example/c/x21c.c for contoured plots as well. We should thank Joao Cardoso for donating the plgriddata code to the PLplot project. 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 __________________________ |