[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnuplot-info
Subject:    ".plt" enhace question
From:       raoul s <raoul_s2001 () yahoo ! com>
Date:       2002-07-17 17:38:06
[Download RAW message or body]

hi,
my current ".plt" and ".dat" files (below) work in my
wgnuplot.
now, how i may pass the name of .dat file from the
prompt or keyboard instead of hardcoding it in ".plt"
file?. 
secondly, if my ".dat" file has a lot more number of
chunks of data that can vary from time to time, how
the "index" line can be modified to take care of
this?.
thanks. -raoul





 
.plt
set data style lines
set xlabel "x"
set ylabel "y"
set title "test"
plot "prices.dat" index 0 with lines
pause -1 "<RETURN>"
plot "price.dat" index 1 with lines
pause -1

info about index...


.dat:

#1
-9.0  19.50
-8.0  19.50
-7.0  19.50
-6.0  18.00
-5.0  17.50
-4.0  17.00
-3.0  16.50
-2.0  16.00
-1.0  15.50
0.0 15.00
1.0 14.50
2.0 14.00
3.0 13.50
4.0 13.00
5.0 12.50
6.0 11.00
7.0 11.00
8.0 11.00


#2
-9.0  19.50
-8.0  19.50
-7.0  19.50
-6.0  18.00
-5.0  17.50
-4.0  17.00
-3.0  16.50
-2.0  16.00
-1.0  15.50
0.0 15.00
1.0 14.50
2.0 14.00
3.0 13.50
4.0 13.00
5.0 12.50
6.0 11.00
7.0 11.00
8.0 11.00

__________________________________________________
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com
 - -
[[[[ to unsubscribe from info-gnuplot, send an email with body
unsubscribe info-gnuplot
to majordomo@dartmouth.edu
]]]]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic