|
From: <mg...@fi...> - 2009-11-27 15:27:29
|
Thanks for your answer, this indeed seems to do the trick. However now the key (which should show what contourline has which value) only shows values, not the lines they correspond to, which makes it pretty useless I'm afraid. I didn't include the key in the plot in my previous E-mail because I thought it wouldn't be relevant but it seems to be. To be more exact, I now use the following plotfile: set terminal postscript eps enhanced monochrome set output "output.eps" set title "2009-11-24" offset 0,0.5 set size square set xrange [1.01:1.2] set yrange [0.85:0.99] set xlabel "A" set ylabel "B" set xtics out nomirror set ytics out nomirror set key at 1.22,0.9 set colorbox vertical user origin .75,.45 size .03,.35 set data style lines set pm3d at b interpolate 30,30 set contour set cntrparam bspline set view map set surface splot "results.dat" using ($2):($3):($1) with pm3d notitle, "line.dat" using 1:2:(0) with lines notitle Any idea how I can get the lines in the key back? Kind regards, Michiel > > set surface > splot "results.dat" using ($2):($3):($1) with pm3d notitle, "line.dat" > using > 1:2:(0) with lines > > > mgraat wrote: >> >> Hi all, >> >> I'm trying to combine the plotting of a heightmap (using contourlines) >> and >> a line. >> >> The .plot file basically is as follows: >> >> set size square >> set data style lines >> set pm3d at b interpolate 10,10 >> set contour >> set cntrparam bspline >> set view map >> unset surface >> splot "results.dat" using ($2):($3):($1) notitle, "line.dat" using >> 1:2:(0) >> >> The results.dat file contains X, Y and Z values, the line.dat file >> (which >> represent a line y = 2-x) only contains X and Y values, with the Z >> value, >> as you can see, set at a constant of 0. >> >> I use 'unset surface' because otherwise a grid-like figure through the >> datapoints in results.dat will be plotted, which is very much >> undesirable >> in my case. However, this also means that the line represented by >> line.dat >> is not plotted. Is this in any way avoidable? That is, can I draw the >> line >> in line.dat without also having the plot the grid-like figure? >> >> Kind regards, >> >> Michiel >> >> >> ------------------------------------------------------------------------------ >> 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://old.nabble.com/Combining-a-3D-and-a-2D-splot-with-no-surface-tp26498165p26499954.html > Sent from the Gnuplot - User mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > 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 > |