|
From: Cruzeiro,Vinicius W. D <vwc...@uf...> - 2017-09-28 20:56:42
|
Dear all, I am using gnuplot 5.2 and this script makes "almost" the graph I need (I am sending the xyz.tsv file attached): set terminal svg enhanced set output 'output.svg' set key off set tics font "Helvetica,15" set xlabel "X axis" rotate parallel font "Helvetica,20" set ylabel "Y axis" rotate parallel font "Helvetica,20" set zlabel "Z axis" rotate parallel font "Helvetica,20" set cblabel "Fitting error\non Z" center rotate by 0 offset -8,7,0 font "Helvetica,17" splot 'xyz.tsv' using 1:2:3:4 with linespoints palette pointsize 2 pointtype 7 The only thing I would like to change now is to remove the lines connecting the points for different values of x (for example, the line between the 6th and the 7th points). In order to test a solution for that, I wrote a file that contains points for a single value of x (test.tsv, sending attached) and tried the following: set terminal svg enhanced set output 'output.svg' set key off set tics font "Helvetica,15" set xlabel "X axis" rotate parallel font "Helvetica,20" set ylabel "Y axis" rotate parallel font "Helvetica,20" set zlabel "Z axis" rotate parallel font "Helvetica,20" set cblabel "Fitting error\non Z" center rotate by 0 offset -8,7,0 font "Helvetica,17" splot 'test.tsv' using 1:2:3 with lines, 'xyz.tsv' using 1:2:3:4 with points palette pointsize 2 pointtype 7 The line appears on the way I want, however for some reason all the points become black! I am not sure if this is a bug in the program or if I am doing something wrong. Has anybody seen this problem before or has a better solution? Assuming there is a better/easier solution, having a way to make the same points but with the lines along the y axis (instead as along x as above) would be very helpful too. Thank you very much, Vinícius Wilian D Cruzeiro PhD Candidate Department of Chemistry, Physical Chemistry Division University of Florida, United States Voice: +1(352)846-1633 |