|
From: mikeincousa <mik...@gm...> - 2013-03-23 19:07:21
|
Very very beginner with gnuplot.
Simply seeking to graph stock series.
Where am I going wrong?
*Data:* (short span to avoid the blank line issue with nonconsecutive
dates--for now).
2013-03-11 68.81
2013-03-12 68.56
2013-03-13 68.47
2013-03-14 68.70
2013-03-15 68.51
#QQQ
*
Code*
set xdata time
set timefmt "%Y/%m/%d"
set xrange ["2013-03-11":"2013-03-15"]
set format x "%Y/%m/%d"
plot "/home/mike/QQQ2.txt" using1:2 [# or using1:3-see below]
*
Tests*
gnuplot> show xdata
x is set to time
gnuplot> show timefmt
read format for time on x axis is "%Y/%m/%d"
read format for time on t axis is "%Y/%m/%d"
read format for time on u axis is "%Y/%m/%d"
gnuplot> show xrange
set xdata time
set xrange [ "2013/01/01" : "2013/01/01" ] noreverse nowriteback
gnuplot> show format
tic format is:
x-axis: "%Y/%m/%d"
y-axis: "% g"
x2-axis: "% g"
y2-axis: "% g"
z-axis: "% g"
cb-axis: "% g"
>>>>>>>>>>
gnuplot> *plot* "/home/mike/QQQ2.txt" using1:2
Need full using spec for x time data
gnuplot> plot "/home/mike/QQQ2.txt" using1:3
Need full using spec for x time data
-------->>/adding a space/ after using..
gnuplot> plot "/home/mike/QQQ2.txt" using 1:3
warning: Skipping data file with no valid points
^
Can't plot with an empty x range!
>>>>>*Reference*
Confusing, as are the others hits in response to the error msg.
http://gnuplot.10905.n7.nabble.com/Histograms-amp-co-td5731.html#a573
--
View this message in context: http://gnuplot.10905.n7.nabble.com/Error-Need-full-using-spec-for-x-time-data-tp17207.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|