commit 4888b54597a494950f88a72794a22192ebb739d5 Author: syntaxerrormmm Date: Fri Mar 18 02:17:35 2011 +0100 Commit iniziale. diff --git a/01_seno.gp b/01_seno.gp new file mode 100644 index 0000000..f9c697e --- /dev/null +++ b/01_seno.gp @@ -0,0 +1,20 @@ +# +# 01_seno +# +# Created by Emiliano Vavassori on 2011-03-14. +# Copyright (c) 2011 __MyCompanyName__. All rights reserved. +# + +set terminal lua tikz color solid tikzarrows scale 0.65,0.53 +set output "../img/01_seno.gtx" +unset title +unset xlabel; unset ylabel +set border 3 +set yrange[-1:1] +set xrange[0:2*pi] +set ytics out nomirror norotate scale 0.5 (-1, 0, 1) +set xtics out nomirror norotate ( "0" 0, "$\\frac{\\pi}{2}$" 0.5*pi, "$\\pi$" pi, "$\\frac{3\\thinspace\\pi}{2}$" 1.5*pi,"$2\\thinspace\\pi$" 2*pi) scale 0.5 +unset xlabel +unset ylabel +set key below +plot sin(x) with lines title "$\\sin(x)$", cos(x) with lines title "$\\cos(x)$" \ No newline at end of file diff --git a/02_parabola.gp b/02_parabola.gp new file mode 100644 index 0000000..08ac3ac --- /dev/null +++ b/02_parabola.gp @@ -0,0 +1,11 @@ +# +# 02_parabola +# +# Created by Emiliano Vavassori on 2011-03-14. +# Copyright (c) 2011 __MyCompanyName__. All rights reserved. +# + +set terminal lua tikz color solid tikzarrows scale 0.64,0.53 +set output "../img/02_parabola.gtx" +f(x) = x**2 -2*x +3 +plot f(x) title "$ f(x) = x^2 -2x +3 $" \ No newline at end of file diff --git a/03_geoide.gp b/03_geoide.gp new file mode 100644 index 0000000..830d8f7 --- /dev/null +++ b/03_geoide.gp @@ -0,0 +1,18 @@ +# +# 03_geoide +# +# Created by Emiliano Vavassori on 2011-03-14. +# Copyright (c) 2011 __MyCompanyName__. All rights reserved. +# + +set terminal lua tikz solid color tikzarrows scale 0.95,0.8 +set output "../img/03_geoide.gtx" + +unset key +unset border +unset xtics +unset ytics +unset ztics +set dummy u,v +set parametric +splot cos(u)*cos(v),cos(u)*sin(v),sin(u) lt 2 \ No newline at end of file diff --git a/04_histogram.dat b/04_histogram.dat new file mode 100644 index 0000000..6013cc6 --- /dev/null +++ b/04_histogram.dat @@ -0,0 +1,22 @@ +"Piemonte" 52.8 46.2 15.2 +"Valle d'Aosta" 51.0 48.2 15.5 +"Lombardia" 48.7 50.6 14.8 +"Trentino-Alto Adige" 47.8 51.4 16.9 +"Bolzano/Bozen" 44.6 54.0 20.0 +"Trento" 50.8 48.9 13.6 +"Veneto" 49.6 50.1 16.4 +"Friuli-Venezia Giulia" 50.0 49.5 12.6 +"Liguria" 56.8 42.2 10.9 +"Emilia-Romagna" 48.9 50.8 13.2 +"Toscana" 50.4 48.8 13.3 +"Umbria" 50.6 48.5 11.9 +"Marche" 46.3 53.0 14.4 +"Lazio" 47.4 51.5 12.2 +"Abruzzo" 51.1 48.1 14.0 +"Molise" 52.9 45.4 26.7 +"Campania" 53.4 45.3 14.6 +"Puglia" 61.1 38.1 12.8 +"Basilicata" 59.4 39.8 15.2 +"Calabria" 60.5 38.6 16.1 +"Sicilia" 59.1 39.8 8.8 +"Sardegna" 50.0 49.5 17.1 diff --git a/04_histogram.gp b/04_histogram.gp new file mode 100644 index 0000000..793fbdd --- /dev/null +++ b/04_histogram.gp @@ -0,0 +1,26 @@ +# +# 04_histogram +# +# Created by Emiliano Vavassori on 2011-03-15. +# Copyright (c) 2011 __MyCompanyName__. All rights reserved. +# + +set encoding utf8 +set terminal pdf enhanced color size 2.8,2.8 +set output "../img/04_histogram.pdf" + +set title "Presenza di Internet nelle \ +famiglie" +set xlabel "Province" +set ylabel "Percentuale (%)" +set border 3 +set key below +set xtics out rotate 90 nomirror +set ytics out nomirror +set grid ytics +set style data histograms +set style histogram rowstacked gap 1 +set boxwidth 0.9 +set style fill transparent solid 0.5 +plot '04_histogram.dat' using 2:xtic(1) \ + title "No", '' using 3 title "Si"