Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.
Close
From: <WH<arms@bf...>  20040805 07:23:40

hi alan, looks interessting. i will try it. The problem i have is a more geographic one. Asume you have samples from all over alaska. now you want to plot the distribution. Clearly you have vast streches with no data (sea, canada), then "clusters" from easy accessable sites that define a minimum resolution and "normal" data. (not exacly my problem but you will get the picture, i hope) regards, walter               Original Message               From: Alan W. Irwin <irwin@...> Subject: Re: [Plplotgeneral] contour plot question Date: 08/04/04 18:38 On 20040804 17:57+0200 WHarms@... 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/docbookmanual/plplothtml5.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/docbookmanual/plplothtml5.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/docbookmanual/plplothtml5.3.1/plline3.html and http://plplot.sourceforge.net/examples/demo18.php. Alan __________________________ Alan W. Irwin email: irwin@... phone: 2507272902 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 frontend to PLplot (yplot.sf.net), the Loads of Linux Links project (loll.sf.net), and the Linux Brochure Project (lbproject.sf.net). __________________________ Linuxpowered Science __________________________  This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG Open Source Technology Group. Come see the changes on the new OSTG site. http://www.ostg.com _______________________________________________ Plplotgeneral mailing list Plplotgeneral@... https://lists.sourceforge.net/lists/listinfo/plplotgeneral 
From: <WH<arms@bf...>  20040810 08:35:37

Hi arjen, thx for reply. plpoin3() displays a 3D cloud. so far i understand i need a function function that takes: unordered ( pos (x,y)+ value) > value=z[x'][y'] (ordered) I had the implession that plgriddata() will do exacty that. i have a simple example programm of the problem (not working) can i post this to the ml as explanation what i am looking for ? regards, walter               Original Message               From: Arjen Markus <arjen.markus@...> Subject: Re: [Plplotgeneral] contour plot question Date: 08/10/04 10:02 " (Walter Harms)" 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) ? > > regards, > walter > > In addition to Alan's reply, the need for array elements z[x][y] does not necessarily mean that you need data for every integral value of x and y, as you seem to imply. plpoin3() expects individual points (x[i],y[i],z[i]) (i=0,...,N). You may want to look at plcont() for filled contours for instance, which takes a matrix z[nx][ny]. Regards, Arjen 
From: Arjen Markus <arjen.markus@wl...>  20040810 08:47:46

" (Walter Harms)" wrote: > > Hi arjen, > thx for reply. plpoin3() displays a 3D cloud. so far i > understand i need a function function that takes: > unordered ( pos (x,y)+ value) > value=z[x'][y'] (ordered) > I had the implession that plgriddata() will do exacty that. > > i have a simple example programm of the problem (not working) > can i post this to the ml as explanation what i am looking for ? > > regards, > walter > Sure, if it is not too long, i.e. below say 100 lines, it should be no problem. I did not have a detailed look yet at your other posting ... Regards, Arjen 