[Gllug] Quick Gnuplot Question

- Tethys tethys at gmail.com
Thu Mar 27 12:23:22 UTC 2008


On Thu, Mar 27, 2008 at 12:07 PM, Stephen Nelson-Smith
<sanelson at gmail.com> wrote:

> I'm drowning in documentation - all I want to do is something very
>  simple, but I can't seem to find any guidance.
>
>  I have table like this:
>
>  # Hour Size Lines
>  10 100 3000
>  11 110 4000
>  12 130 5500
>  13 160 6700

Assuming your data is in file.dat:

set ylabel "Size"
set y2label "Lines"
set xlabel "Hour"
set y2tics
plot 'file.dat' using 1:2 title "Size" axes x1y1 with lines, \
    'file.dat' using 1:3 title "Lines" axes x1y2 with lines

Tet

-- 
Perl is like vise grips. You can do anything with it but it is the
wrong tool for every job. -- Bruce Eckel
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list