|
From: Paulo E. A. <pau...@ci...> - 2009-11-26 13:52:46
|
Hello, I am doing a 3D plot where I have to plot some points colored by their z-value. unset key set palette splot 'file1.txt' using 1:2:3 with points palette pointtype 7 pointsize 0.75 But I also want to plot a vector on each point with the same color as the previous plotted point. So I use splot 'file1.txt' using 1:2:3 with points palette pointtype 7 pointsize 0.75, 'vecs.txt' using 1:2:3:4:5:6:(3) with vectors linetype palette but I get the color of the vectors from the sixth coordinate in the 'vecs.txt' file which is always zero in my case and I end up with all black vectors. I know that I could do splot 'file1.txt' using 1:2:3 with points palette pointtype 7 pointsize 0.75, 'vecs.txt' using 1:2:3:4:5:6 with vectors linetype palette cb 3 but I want to have the color determined by the third coordinate which gives the height of each point. Is that possible ? or should I convert everything to 'set arrow' commands ? How to plot the arrows with a color determined by its third coordinate ? Thanks in advance Paulo -- Paulo E. Abreu Professor Auxiliar Departamento de Química Faculdade de Ciências e Tecnologia da Universidade de Coimbra |