User Tools

Site Tools


wiki:gnuplot2
reset
set style line 1 lc rgb '#dd181f' linetype 1 linewidth 2 pointtype 7 #red
set style line 2 lc rgb '#0060ad' linetype 1 linewidth 2 pointtype 7 #marine blue
set key left
set border linewidth 1.5
set terminal pngcairo
set output 'output/exercise2/forest_landsat_mean_stdev.png'
set title 'Top Of Atmosphere signatures from Landsat'
set xtics ('Blue' 0, 'Green' 1, 'Red' 2, 'NIR' 3, 'SWIR1' 4, 'SWIR2' 5)
set ylabel 'Digital number'
plot \
     "<awk '{if(NR!=6&&NR!=7) print $0}' output/exercise2/forest_landsat_mean_stdev.txt" u 0:1:2 with yerrorbars linestyle 1 notitle,\
     '' u 0:1 w lines linestyle 1 title 'forest',\
     "<awk '{if(NR!=6&&NR!=7) print $0}' output/exercise2/water_landsat_mean_stdev.txt" u 0:1:2 with yerrorbars linestyle 2 notitle,\
     '' u 0:1 with lines linestyle 2 title 'water'
set terminal wxt size 500,350 enhanced font 'Verdana,10' persist
replot
wiki/gnuplot2.txt · Last modified: 2017/12/05 22:53 (external edit)