Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

4D data plotting with gnuplot

895 views
Skip to first unread message

hdt...@gmail.com

unread,
Feb 27, 2007, 2:22:11 PM2/27/07
to
Hi,

I have been looking all week for a way to plot a 3D graph using 4
columns from a data file. The first three columns correspond to
position of particles and the fourth, to their temperature. I would
like to plot a 3D graph showing a surface of a certain temperature.

Any idea?

modis

Ethan Merritt

unread,
Feb 27, 2007, 3:01:32 PM2/27/07
to
In article <1172604131.3...@j27g2000cwj.googlegroups.com>,


Version 4.2 answers and examples

Coloring particles (points) in 3D with arbitrary colors:

http://gnuplot.sourceforge.net/demo_4.2/rgb_variable.html
http://gnuplot.sourceforge.net/demo_4.2/world2.html

In a nutshell the command would look something like

plot "datafile" using 1:2:3:4 with points palette
or
plot "datafile" using 1:2:3:4 with points lc rgb variable

depending on how you are assigning colors.

Calculating a surface from a set of separate points is a whole
other kettle of fish. I'm not much use as an advisor on that issue.
--
Ethan A Merritt

0 new messages