Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ploting multiple spheres in gnuplot from a file

Tags:

gnuplot

I have a file with 5 columns (x,y,z,r,c) that contains on each line the coordinates of a sphere,its radius and its color (a number or a letter to determine the color, I can change it) . Could you please help me to plot these spheres in gnuplot?

like image 564
Hamed Zeinaly Avatar asked Oct 15 '25 14:10

Hamed Zeinaly


1 Answers

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

visit http://gnuplot.sourceforge.net/demo/pm3dcolors.html to see how to set the palette you want to use.

like image 87
Tom Solid Avatar answered Oct 18 '25 18:10

Tom Solid



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!