From: <jc...@fe...> - 2003-09-11 23:01:19
|
On Thursday 11 September 2003 17:09, Alan W. Irwin wrote: | 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.cv |s.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. Hi, plgriddata() uses several algorithms to perform its task. The simplest are nearest neighbors (KNN) based, and require no additional libraries; the more sophisticated algorithms uses the csa (cubic spline approximation) and nn (Natural Neighbours) libraries, both authored by Pavel Sakov (http://www.marine.csiro.au/~sakov/) and both included in the plplot distribution. The nn library needs in addition the qhull library, which is not included in plplot, but it's easy to build and can be obtained at http://savannah.nongnu.org/projects/qhull Good luck Joao | | 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 | __________________________ | | | ------------------------------------------------------- | This sf.net email is sponsored by:ThinkGeek | Welcome to geek heaven. | http://thinkgeek.com/sf | _______________________________________________ | Plplot-general mailing list | Plp...@li... | https://lists.sourceforge.net/lists/listinfo/plplot-general |