I want to add a triangle between three points in my gnuplot.
I found this code:
set pm3d ftriangles
splot 'x.txt' w pm3d notitle
whereby x.txt contains for instance:
0 0 1
1 1 0
1 0 1
I would like to be able to do embed all of the code in 1 script without having the extra text file, so just together with the splot command. Is this possible? I tried something like this, but it didn't work:
set pm3d ftriangles
splot w pm3d notitle
0 0 1
e
1 1 0
e
1 0 1
e
Sorry for missing some basics in gnuplot...