From: Marc H. <ho...@is...> - 2004-06-28 13:39:09
|
Hi all, Michael's suggestion almost worked like a charm (thanks). This means when I format my data like: data = [ [ [1,1,z(1,1),val(1,1)], [1,2,z(1,2),val(1,2)], [1,3,z(1,3),val(1,3)], ], [ [2,1,z(2,1),val(2,1)], [2,2,z(2,2),val(2,2)], [2,3,z(2,3),val(2,3)], ], ... ] and then plot it with: resG.splot(Gnuplot.Data(data)) I get a colored 3d plot with x,y,z and z as colored values on the surface. Somehow the val- values are not shown on the colored surface. Is this due to the implementation of Data? Or did I misunderstand something? See below for I test case I tried to run. import Gnuplot g = Gnuplot.Gnuplot() asd =[ \ [ \ [1,1,0,10], \ [1,2,0,10], \ [1,3,0,10], \ [1,4,0,10], \ ], \ [ \ [2,1,1,20], \ [2,2,1,20], \ [2,3,1,20], \ [2,4,1,20], \ ], \ [ \ [3,1,2,30], \ [3,2,2,30], \ [3,3,2,30], \ [3,4,2,30], \ ], \ ] print asd g.title('test') g('set pm3d') g('set term X11') g.splot(Gnuplot.Data(asd, inline=1)) raw_input() All I got on the colored surface where values ranging from 0 to 2 instead of values from 10 to 30 . Every help is appreciated. Many thanks in advance Marc Hodapp |