#!/usr/bin/gnuplot -c
n = ARG1

set datafile separator ","
set terminal pdf monochrome

set xlabel "Frekvenčni odmik (Hz)"
set ylabel "Fazni šum (dBc/Hz)"
set xrange [100:100000]
set yrange [-150:-50]
set key off #bottom left
set grid
set grid mxtics
set logscale x
set format x '10^{%T}'

set output n.".pdf"
set title "Meritev faznega šuma"
plot n.".csv" u 1:2 w lines 

