#Layout to see a Raman Spectrum
#You have to set the range after a first preview


#GENERAL SETTINGS (DO NOT MOVE)
 set termopt enhanced                   # Allow to use ^super/_{sub} 
# set   autoscale                       # scale axes automatically
 unset log                              # remove any log-scaling
 unset label                            # remove any previous labels
 set xtic auto                          # set xtics automatically
 set ytic auto                          # set ytics automatically
 set palette gray
 set encoding iso_8859_1                # Latin accents
 set grid


#CONTROL THE PLOT TITLES
 set title "N-(methyl)mercapto acetamide Spectrums" font "Times-Roman, 12"
 set xlabel "Frequency cm^{-1}" font "Times-Roman,12"
 set ylabel "Intensity" font "Times-Roman,12"

 set style line 5  lt 2 lw 1 pt 5 ps 1 lc rgb "#2F4F4F"
 set style line 11 lt 2 lw 1 pt 4 ps 2 lc rgb 'red'
 set style line 10 linetype 2 linecolor rgb "black"


#Controlar la caja de leyendas
# set key outside box                    #Coloca la caja fuera de la graph
  #Para poner las leyendas en dif posiciones gnuplot utiliza
# top/bottom/center  left/right/center box/nobox
 set key center left nobox


#Filled a curve
# set style fill solid 1.0 noborder
# set style function filledcurves y1=0
# set clip two


#SET THE RANGE VIEW OF THE PLOT
set xrange [500:3500]
set yrange [0:1000]

 plot "a2mNm.out.raman.dat" using 1:2 title 'Raman Spectrum' with filledcurve y1=0 lc rgb "blue", \
      "a2mNm.out.ir.dat"    using 1:2 title 'IR Spectrum' with filledcurve x2=0 lc rgb "red";

reset
