|
From: azp <ann...@gm...> - 2010-11-22 18:29:00
|
Thank you for the pointer Hans. I seeded rand with a random number in each iteration and it still did not make a difference. To make sure I was doing it right, for testing purposes, instead of using a loop (the script loop.gnu), I tried to plot just two graphs in the main script as follows: A=1 set palette model RGB defined (0 0 0.7 0.2, 1 0.5 0 0.45) sp '</data/STAF/src/scripts/results/plot_data.sh 1' u (A):2:3 w pm3d A=A+1 set palette model RGB defined (0 0.2 0.4 0, 1 0 0.3 0) sp '</data/STAF/src/scripts/results/plot_data.sh 13' every ::1::2 u (A):2:3 w pm3d And both the above graphs also got plotted in the same color. There is still probably something I still am not understanding. Can you see what I am doing wrong? I am using gnuplot version 4.4 patchlevel zero. Thanks Anna Hans-Bernhard Bröker-2 wrote: > > On 20.11.2010 02:19, Anna wrote: >> Hi, >> >> I try to change the color of each splot as below, but all the lines in >> the graph >> still get the same color. > > That's because you misunderstand the working of the rand() function. > Like just about all pseudo-random number generators in the world of > computing, rand() returns the same results in every gnuplot session, > unless you seed it with a different start-up value. See "help rand". > > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today > http://p.sf.net/sfu/msIE9-sfdev2dev > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > > -- View this message in context: http://old.nabble.com/change-color-palette-for-each-graph-tp30271189p30281286.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |