从文件中绘制gnuplot中的多个球体

时间:2016-05-27 16:27:56

标签: gnuplot

我有一个包含5列(x,y,z,r,c)的文件,每行包含一个球体的坐标,它的半径和颜色(一个数字或一个字母来确定颜色,我可以更改) 。你能帮我在gnuplot中绘制这些球体吗?

1 个答案:

答案 0 :(得分:2)

set palette rgb 7,5,15
splot 'spheres.dat' using 1:2:3:4:5 with points pt 7 ps var lc palette  notitle

访问http://gnuplot.sourceforge.net/demo/pm3dcolors.html,了解如何设置您要使用的调色板。

相关问题