GNUplot help

Bill Heagy wheagy-CzeTG9NwML0 at public.gmane.org
Fri Apr 18 18:32:35 UTC 2014


For time data, you have to use "using" in the plot line:  see "help 
time/date"

On 18/04/14 02:21 PM, Neil Watson wrote:
> Greetings,
>
> I'm trying to graph the following data, in my attempt to learn GNUplot.
>
> # date     notkept
> 2014-04-01 50
> 2014-04-02 63
> 2014-04-03 120
> 2014-04-04 55
> 2014-04-05 60
> 2014-04-06 63
> 2014-04-07 52
>
> I have this plot script:
> #!/usr/bin/gnuplot
>
> set title "Promise Not Kept"
> set xlabel "Date"
> set ylabel "Count"
> set xdata time
> set timefmt "%Y-%m-%d"
> set format x "%Y-%m-%d"
> set grid
> plot 'test.dat'

plot 'test.dat' using 1:2
> pause -1
>
> When I run it I get this error:
> plot 'test.dat'
>               ^
> "./test.sh", line 10: Need full using spec for x time data
>
> What have I done wrong?
>

-- 
Bill Heagy

--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list