|
From: Thomas S. <t.s...@fz...> - 2010-07-26 08:31:59
|
use only one variable, 'n1' instead of 'n1_001' and 'n1_002':
***
for freq in 001 002
do
case "$freq" in
001)
n1=0.047085
;;
002)
n1=0.024406
;;
esac
gnuplot << EOF
set arrow 1 from "20080824", "$n1" to "20100522", "$n1" nohead lc rgb "blue"
plot "input-${freq}.dat" using 1:(\$2) with lines notitle
EOF
done
***
febty wrote:
>
> I modified gnuplot in bash
> I did like below :
>
> ***
> for freq in 001 002
> do
>
> case "$freq" in
> 001)
> n1_001=0.047085
> ;;
> 002)
> n1_002=0.024406
> ;;
> esac
>
> gnuplot << EOF
>
> set arrow 1 from "20080824", "n1_${freq}" to "20100522", "n1_${freq}"
> nohead
> lc rgb "blue"
> plot "input-${freq}.dat" using 1:(\$2) with lines notitle
>
> EOF
>
> done
> ***
>
> I want to change n1_${freq} is 0.047085 for freq=001, and 0.024406 for
> freq=002, but, unfortunately it didn't work.
> Maybe, I must put some tricks?
> Any help is greatly appreciated
> --
>
> ******
> febty febriani
> Indonesian Institute of Sciences
> Research Center for Physics
> Kompleks PUSPIPTEK
> Serpong, Indonesia, 15314
> ------------------------------------------------------------------------------
> The Palm PDK Hot Apps Program offers developers who use the
> Plug-In Development Kit to bring their C/C++ apps to Palm for a share
> of $1 Million in cash or HP Products. Visit us here for more details:
> http://ad.doubleclick.net/clk;226879339;13503038;l?
> http://clk.atdmt.com/CRS/go/247765532/direct/01/
> _______________________________________________
> gnuplot-info mailing list
> gnu...@li...
> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>
>
--
View this message in context: http://old.nabble.com/set-arrow-problem-tp29264073p29264309.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|