Gnuplot Test 01.
#/////////////////////////////////////////////////////////////////////////////
#/ FILE : gif.gpl
#/ AUTHOR : http://www.asolver.com
#/ PURPOSE : Gnuplot Test 01.
#/////////////////////////////////////////////////////////////////////////////
# Generate a gif format, font arial 10 of all text, size 800 x 500 pixels
set term gif font 'arial' 10 size 800, 500
set output 'gnuplot.01.gif'
set datafile separator ';'
set title 'Título ejemplo 01'
set style data lines
# Format dd/mm/yyyy (I try to define yyyy/mm/dd format but does not work)
set timefmt '%d/%m/%Y'
set xdata time
set xlabel 'tiempo en días'
set xrange [ '1/6/2014':'1/11/2014' ]
set xtics rotate by 90
set format x '%d/%m/%Y'
set ylabel 'euros'
set yrange [ 0 : ]
set grid
# Put the time series label at top left
set key left
# plot data from gnuplot.01.dat:
# 1:2 t -> first column dates and second column data title serie.01
# 1:3 t -> first column dates and third column data title serie.02
plot 'gnuplot.01.dat' using 1:2 t 'serie.01', \
'gnuplot.01.dat' using 1:3 t 'serie.02'
reset
SHi.SyntaxHighlight funciones de sintaxis realzada de codigo
2015 asolver.com | Aviso legal | XHTML | Δ Θ Ξ | Creative Commons | Mapa y funciones del sitio