Add measurements and change a little the definition of free software
This commit is contained in:
2508
gnuplot/DATA.TSV
Normal file
2508
gnuplot/DATA.TSV
Normal file
File diff suppressed because it is too large
Load Diff
12462
gnuplot/data.svg
Normal file
12462
gnuplot/data.svg
Normal file
File diff suppressed because it is too large
Load Diff
After Width: | Height: | Size: 1.2 MiB |
65
gnuplot/latex.gpi
Normal file
65
gnuplot/latex.gpi
Normal file
@ -0,0 +1,65 @@
|
||||
# Inspired by http://youinfinitesnake.blogspot.ch/2011/02/attractive-scientific-plots-with.html
|
||||
# and http://www.gnuplotting.org/why-you-should-upgrade-to-gnuplot-4-4-3/
|
||||
|
||||
set terminal epslatex size 5.8,8.2 color colortext 'phv,9' header '\definecolor{t}{rgb}{0.5,0.5,0.5}'
|
||||
set format '\color{t}$%g$'
|
||||
set output '../latex/data.tex'
|
||||
|
||||
# Line style for axes
|
||||
set style line 80 lt 0
|
||||
set style line 80 lt rgb '#808080'
|
||||
|
||||
# Line style for grid
|
||||
set style line 81 lt 3 # dashed
|
||||
set style line 81 lt rgb '#808080' lw 0.5 # grey
|
||||
|
||||
set grid back linestyle 81
|
||||
set border 3 back linestyle 80
|
||||
|
||||
set xtics nomirror
|
||||
set ytics nomirror
|
||||
|
||||
set style line 1 linetype 1
|
||||
set style line 2 linetype 1
|
||||
set style line 3 linetype 1
|
||||
set style line 4 linetype 1
|
||||
set style line 1 linetype rgb '#A00000' linewidth 2 pointtype 7
|
||||
set style line 2 linetype rgb '#00A000' linewidth 2 pointtype 9
|
||||
set style line 3 linetype rgb '#5060D0' linewidth 2 pointtype 5
|
||||
set style line 4 linetype rgb '#F25900' linewidth 2 pointtype 13
|
||||
|
||||
set size 1,1
|
||||
set origin 0,0
|
||||
|
||||
set xlabel 'Temps [hhmm]'
|
||||
set xdata time # the x-axis is time
|
||||
set format x '%H%M' # display as time
|
||||
set timefmt '%Y-%m-%d %H:%M:%S' # but read in as datetime
|
||||
set xtics 300
|
||||
|
||||
set multiplot
|
||||
|
||||
set size 1,0.25
|
||||
set origin 0,0.75
|
||||
set ylabel 'Température'
|
||||
plot 'DATA.TSV' using 1:3 title 'T [°C]' with linespoints linestyle 1
|
||||
|
||||
set size 1,0.25
|
||||
set origin 0,0.5
|
||||
set ylabel 'Pression'
|
||||
plot 'DATA.TSV' using 1:($4/100) title 'P [hPa]' with linespoints linestyle 2
|
||||
|
||||
set size 1,0.25
|
||||
set origin 0,0.25
|
||||
set ylabel 'Humidité'
|
||||
plot 'DATA.TSV' using 1:6 title 'Hr [\%]' with linespoints linestyle 3
|
||||
|
||||
set size 1,0.25
|
||||
set origin 0,0
|
||||
set ylabel 'Luminosité'
|
||||
plot 'DATA.TSV' using 1:7 title 'Lx [Lux]' with linespoints linestyle 4
|
||||
|
||||
unset multiplot
|
||||
reset
|
||||
|
||||
set output
|
64
gnuplot/svg.gpi
Normal file
64
gnuplot/svg.gpi
Normal file
@ -0,0 +1,64 @@
|
||||
# Inspired by http://youinfinitesnake.blogspot.ch/2011/02/attractive-scientific-plots-with.html
|
||||
# and http://www.gnuplotting.org/why-you-should-upgrade-to-gnuplot-4-4-3/
|
||||
|
||||
set terminal svg enhanced mouse size 1920,1440 rounded dashed
|
||||
set output 'data.svg'
|
||||
|
||||
# Line style for axes
|
||||
set style line 80 lt 0
|
||||
set style line 80 lt rgb '#808080'
|
||||
|
||||
# Line style for grid
|
||||
set style line 81 lt 3 # dashed
|
||||
set style line 81 lt rgb '#808080' lw 0.5 # grey
|
||||
|
||||
set grid back linestyle 81
|
||||
set border 3 back linestyle 80
|
||||
|
||||
set xtics nomirror
|
||||
set ytics nomirror
|
||||
|
||||
set style line 1 linetype 1
|
||||
set style line 2 linetype 1
|
||||
set style line 3 linetype 1
|
||||
set style line 4 linetype 1
|
||||
set style line 1 linetype rgb '#A00000' linewidth 2 pointtype 7
|
||||
set style line 2 linetype rgb '#00A000' linewidth 2 pointtype 9
|
||||
set style line 3 linetype rgb '#5060D0' linewidth 2 pointtype 5
|
||||
set style line 4 linetype rgb '#F25900' linewidth 2 pointtype 13
|
||||
|
||||
set size 1,1
|
||||
set origin 0,0
|
||||
|
||||
set xlabel 'Temps [hhmm]'
|
||||
set xdata time # the x-axis is time
|
||||
set format x '%H%M' # display as time
|
||||
set timefmt '%Y-%m-%d %H:%M:%S' # but read in as datetime
|
||||
set xtics 300
|
||||
|
||||
set multiplot
|
||||
|
||||
set size 0.5,0.5
|
||||
set origin 0,0.5
|
||||
set ylabel 'Température'
|
||||
plot 'DATA.TSV' using 1:3 title 'T [°C]' with linespoints linestyle 1
|
||||
|
||||
set size 0.5,0.5
|
||||
set origin 0,0
|
||||
set ylabel 'Pression'
|
||||
plot 'DATA.TSV' using 1:($4/100) title 'P [hPa]' with linespoints linestyle 2
|
||||
|
||||
set size 0.5,0.5
|
||||
set origin 0.5,0.5
|
||||
set ylabel 'Humidité'
|
||||
plot 'DATA.TSV' using 1:6 title 'Hr [%]' with linespoints linestyle 3
|
||||
|
||||
set size 0.5,0.5
|
||||
set origin 0.5,0
|
||||
set ylabel 'Luminosité'
|
||||
plot 'DATA.TSV' using 1:7 title 'Lx [Lux]' with linespoints linestyle 4
|
||||
|
||||
unset multiplot
|
||||
reset
|
||||
|
||||
set output
|
Reference in New Issue
Block a user