gnuplot: solid filled triangle in 3D - splot function -
i have file (x.txt):
0 0 0 0 0 2 2 2 1 0 0 0 which has coordinates of vertexes should make triangle.
i want triangle filled. tried few ways, didn't succeed:
splot "x.txt" lines #triangle not filled splot "x.txt" pm3d #i can see points set style fill solid splot "x.txt" lines #just lines i saw few examples on internet showing how it, none of them worked points. example: http://gnuplot.sourceforge.net/demo/hidden2.html - want. want color not change , same on whole surface of triangle.
if want show 1 triangle, must change file bit , use set pm3d ftriangles. usually, used draw smooth boundary if 2 subsequent scans don't have same number of points:
file x.txt:
0 0 0 0 0 2 2 2 1 plot
set pm3d ftriangles splot 'x.txt' w pm3d notitle the result 4.6.3 is:

Comments
Post a Comment