|
From: Anna <ann...@gm...> - 2010-11-20 01:25:22
|
Hi,
I try to change the color of each splot as below, but all the lines in the graph
still get the same color.
#!/usr/local/bin/gnuplot
r=rand(0); g=rand(0); b=rand(0)
set palette model RGB defined (0 r/cm g/cm b/cm, 1 r g b)
splot '</data/STAF/src/scripts/results/plot_data.sh ' u (A):2:3 w pm3d
A = A + 1
col = col + 1
if (col<=total_columns) reread
The above script is loaded from this script:
#!/bin/bash
total_columns=`awk 'NR==1{print NF}' /data/STAF/src/scripts/logs/d.txt`
echo "1"> /data/STAF/src/scripts/logs/column.txt
/usr/local/bin/gnuplot << EOF
reset
set term png size 800,400
unset key; unset colorbox
set tics out nomirror
set border 1+2+4+8+16+32+64+256+512 back
set xrange [0:$total_columns]; set cbrange [0:1]
set xlabel 'x axis [a.u.]'; set ylabel 'y axis [a.u.]';
set ticslevel 0
set output "/data/data/results/ribbon.png"
set table 'bg.dat'
splot x
unset table
set multiplot
set style line 1 lt -1 lw 0.5 ps 0
set pm3d depthorder hidden3d 1
A=1
col=1
cm=2.5
total_columns=$total_columns
load "/data/STAF/src/scripts/results/loop.gnu"
unset multiplot
EOF
Can anyone help me figure out what I am doing wrong?
Thanks
Anna
|