User Tools

Site Tools


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