|
From: delete000 <jua...@ho...> - 2009-08-07 15:10:22
|
Hello, I'm trying to plot 5 surfaces in the same plot: splot 'data.dat' u 1:2:5 w l,'data.dat' u 1:2:6 w l, 'data.dat' u 1:2:7 w l,'data.dat' u 1:2:8 w l,'data.dat' u 1:2:9 w l The problem is that when using hidden3d or pm3d-hidden3d, the surfaces are ordered depending on which one is plotted first, so in the above example "'data.dat' u 1:2:5 w l" covers "'data.dat' u 1:2:6 w l" which covers "'data.dat' u 1:2:7 w l" and so on. Is it possible to order surfaces depending on their z value at each point, so that if a surface falls beneath another one at some point, only the highest one is visible at that point? Thanks in advance, Stefanos -- View this message in context: http://www.nabble.com/hidden3d%3A-hide-surface-with-higher-z-value-when-splotting-multiple-surfaces-from-datafile-tp24865525p24865525.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Hans-Bernhard B. <HBB...@t-...> - 2009-08-07 19:21:40
|
delete000 wrote: > The problem is that when using hidden3d or pm3d-hidden3d, the surfaces are > ordered depending on which one is plotted first, No they're not. At least the real hidden3d mode quite definitely doesn't make such silly mistakes. set hidden3d splot 5, 4, 3, 2, 1 definitely doesn't have the surface at z=1 covering the one at z=5. I wouldn't extend similar warranties to pm3d's same-named option, though. Particularly not in older versions of gnuplot. > Is it possible to order surfaces depending on their z value at each > point, Not generally. Nor would that make terribly much sense. Surfaces must be ordered by distance to the view (i.e. the axis pointing out of the display plane), not the data z value. Remember that you can rotate the view such that lower z's are closer to you than higher ones. |
|
From: delete000 <jua...@ho...> - 2009-08-10 07:58:22
|
hello, thanks for your help Hans-Bernhard Bröker-2. with your help i can now make the plot i wanted. it would look much better though if i could at least color the surfaces (solid color, no contour needed) and i think i can't do that without using pm3d. so i guess i'll have to make a multiplot and plot each surface on its own. thanks again, Stefanos Hans-Bernhard Bröker-2 wrote: > > delete000 wrote: > >> The problem is that when using hidden3d or pm3d-hidden3d, the surfaces >> are >> ordered depending on which one is plotted first, > > No they're not. At least the real hidden3d mode quite definitely > doesn't make such silly mistakes. > > set hidden3d > splot 5, 4, 3, 2, 1 > > definitely doesn't have the surface at z=1 covering the one at z=5. > > I wouldn't extend similar warranties to pm3d's same-named option, > though. Particularly not in older versions of gnuplot. > >> Is it possible to order surfaces depending on their z value at each >> point, > > Not generally. Nor would that make terribly much sense. Surfaces must > be ordered by distance to the view (i.e. the axis pointing out of the > display plane), not the data z value. Remember that you can rotate the > view such that lower z's are closer to you than higher ones. > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gnuplot-info mailing list > Gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > > -- View this message in context: http://www.nabble.com/hidden3d%3A-hide-surface-with-higher-z-value-when-splotting-multiple-surfaces-from-datafile-tp24865525p24895702.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |