#!/usr/bin/gnuplot

set datafile separator ","
set terminal pdf
set output "modulator.pdf"

set border linewidth 2
set style line 1 linecolor rgb '#0060ad' linetype 1 linewidth 5
set style line 2 linecolor rgb '#dd181f' linetype 1 linewidth 5

set style rect fc lt -1 fs solid 0.15 noborder
set obj rect from 27.5, graph 0 to 28.5, graph 1

set xlabel "Voltage (V)"
set ylabel "S21 mag (dB)" textcolor linestyle 1
set y2label "angle (degree)" textcolor linestyle 2
set xtics nomirror
set ytics nomirror textcolor linestyle 1
set y2tics textcolor linestyle 2

unset key


plot "modulator.csv" u 1:2 w lines linestyle 1,\
	"modulator.csv" u 1:3 w lines axes x1y2 linestyle 2
