|
From: anu2007 <lov...@gm...> - 2011-01-20 05:49:04
|
I am trying to multiple spheres with different colors by defining palette multiple number of times. But all the time I am getting spheres with the same color as the first one. why ?? here is my plot file for two spheres set terminal png size 3000,3000 set output "/tmp/lsl2637093898435151443.png" set size ratio 1 set encoding iso_8859_1 set multiplot unset xtics unset ytics unset ztics unset border unset colorbox stretch = 0.7771650467234347 set xrange [0:3.1086601868937387] set yrange [0:3.1086601868937387] set zrange [0:3.1086601868937387] set view 70, 60 set isosamples 50, 50 set parametric set hidden3d set urange [-pi-0.1:pi+0.1] set vrange [-pi/2-0.1:pi/2+0.1] set pm3d set palette defined (1*stretch-0.06101652188319213 "#426600" , 1*stretch "#FFFFE0" , 1*stretch+0.06101652188319213 "#426600" ) splot 1*stretch+0.06101652188319213*cos(u)*cos(v), 1*stretch+0.06101652188319213*sin(u)*cos(v) ,1*stretch+0.06101652188319213*sin(v) notitle set palette defined (2*stretch-0.08117878044557737 "#FF0000" , 2*stretch "#FFFFE0" , 2*stretch+0.08117878044557737 "#FF0000" ) splot 1*stretch+0.08117878044557737*cos(u)*cos(v), 1*stretch+0.08117878044557737*sin(u)*cos(v) ,2*stretch+0.08117878044557737*sin(v) notitle ---By this file I hope of getting two different spheres with green and red color . But they both are green . I always thought it would work but I am stuck now and I have very less time now to submit my code :( -- View this message in context: http://old.nabble.com/URGENT%3AProblem-with-palette-in-multiplot-mode-tp30716464p30716464.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |