Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: sfeam Newsgroups: comp.graphics.apps.gnuplot Subject: Re: splot with dgrid3d / pm3d? Followup-To: comp.graphics.apps.gnuplot Date: Sat, 09 Feb 2013 20:28:10 -0800 Organization: gnuplot development team Lines: 64 Message-ID: References: Reply-To: sfeam@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit Injection-Date: Sun, 10 Feb 2013 04:27:39 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="e947cb29d2533e27aa00183e80187dbb"; logging-data="9511"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19vsFo9b+Zq4sAkUo0bQqcE" User-Agent: KNode/4.4.9 Cancel-Lock: sha1:3ESYDUpJCOUTCky9rP+v9b0cbXM= Xref: csiph.com comp.graphics.apps.gnuplot:1617 neurino wrote: > Dear gnuplotters, > > i have 3D data, which look like this > # x y z > 1996-12 68 -0.09928498 > 1996-12 69 -0.1597349 > 1996-12 70 -0.009438827 > ... > ... > 1997-01 68 -0.09928498 > 1997-01 69 -0.1597349 > 1997-01 70 -0.009438827 > > and so on, 192 data (x) blocks, each of 141 values (y). I may not understand the question. It looks from the *.jpg you point to that you aren't really trying for a 3D plot, but a 2D heatmap. Is that correct? If so then neither pm3d nor isosamples are needed. Try plot "data" using 2:1:3 with image There are actually quite a few ways to create a heatmap. You might have a look at the demos here http://gnuplot.sourceforge.net/demo_cvs/heatmaps.html As to smoothing and highlighting, I'd have to know a lot more about the data structure and what you are looking for. Maybe a Fourier transform + high frequency filter? Or just output the heatmap as a PNG image and read it into an image processing tool like Photoshop or GIMP. Ethan > > The following plot > http://img39.imageshack.us/img39/8113/cthanzonalfull.jpg > > has been created with (relevant commands): > > set pm3d map > set isosample 1200 > set xdata time > set timefmt "%Y-%m-%d" > splot f1 u 1:2:3 notitle > > However, i'd like to smooth them and highlight patterns. > I am having difficult times with set dgrid3d, because if i set > > set dgrid3d 40,40,16 > > i get this result > http://img16.imageshack.us/img16/1641/testiiq.jpg > > So, from the demos i don't get how the non-gridded data should be > preprocessed, having set dgrid3d instead of pm3d, given that the nice > demos are achieved with splot 1:2:3 too. > > Thanks for the help.