|
From: Marc H. <ho...@is...> - 2004-06-25 13:57:35
|
Hi all,
when using gnuplot directly, I can create 4d data plots with something
like:
set pm3d
splot 'file.dat' using 1:2:3:4
Where file.dat is the data file, 1,2,3 are the columns with the x,y,z
data and 4 is the column with the value data which defines the color value.
Now I want to do the same thing using gnuplot.py. In my python program,
I define 4 lists: x, y,z,val. I then use the instructions:
resG = Gnuplot.Gnuplot()
resG('set pm3d')
resG.splot(Gnuplot.Data(x,y,z,val))
What I get as a result, is a 3d plot with my points, but no colored
surface showing val . So my questions are: Can Gnuplot.Data() receive 4
arguments, which are then passed to splot and pm3d? When using gnuplot
directly, the file must contain blank lines between two scans
(isolines). In gnuplot.py do I have to include empty strings in the
x,y,z,val lists to delimit the isolines? How can I delimit these scans
in gnuplot.py? Is there an other way to plot my surface using the
xyz,val lists ( like resG('splot ...') )?
Many thanks in advance.
Marc Hodapp
|