From: Thomas S. <t.s...@fz...> - 2010-01-26 11:08:41
|
unset dgrid3d otherwise the data are interpolated separate the individual iso-lines in your data file by single blank lines. trailblazerger wrote: > > Hi there, > > I am trying to do a simple 3D-Plot of data I stored in a file > "myfile.txt". This file contains data which depends on two parameters: d > and r such that r >= d, i.e. > > # r, d, result > 7, 3, 3.21 > 7, 4, 7.23 > 7, 5, 78,23 > 7, 6, 89,21 > 8, 3, 23.19 > 8, 4, 23.12 > 8, 5, 23.11 > 8, 6, 11.99 > 8, 7, 93,47 > 9, 3, 98.21 > > and so on. The problem is: If I use the following gnuplot-code then it > automatically also uses data which I did not specify, for example r = 7, d > = 9 for which there are no values in the file (r> d required). > > So how do I tell gnuplot to only plot those data that are supplied in the > file without interpolation or something thereof? > > Thanks in advance! > > The code: > > set xrange[3:14]; > set yrange [3:*]; > set xlabel "r"; > set ylabel "d"; > set zlabel "sec"; > set dgrid3d > set cntrparam levels discrete 0, 3, 5, 7 > set key 19, 8 > set view 65,345,1.0,1.0 > set palette defined (0 "black", 0.2 "gray" ,0.45 "#55CC55") > set ticslevel 0 > set pm3d > splot "myfile.txt" using 1:2:5 with lines title "atitle" lc rgb > "#000000"; > -- View this message in context: http://old.nabble.com/splot-and-partial-data-tp27315271p27320985.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |