Gnuplota

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

set term postscript eps enhanced color solid font 'NanumGothic' rounded

set key inside right top vertical Right enhanced


set style line 1 lc rgb '#F05D98' lw 3 pt 7
set style line 2 lc rgb '#B85DF0' lw 5 pt 2 lt 0
set style line 3 lc rgb '#FF0000' lw 3 pt 7
set style line 4 lc rgb '#000000' lw 5 pt 2 lt 0
set output '| epstopdf --filter --outfile=newtonrings.pdf'
set title "Aneis de Newton: diametro dos minimos em funcao da ordem"
set xrange[0:18]
set xlabel "m (adimensional)"
set ylabel "D_m^2 ({/Symbol m}m^2)"
f(x) = a*x
fit f(x) 'newton.data' using 1:2 via a
linear(a) = sprintf('Fit linear: D_m^2 = %.2f*m ({/Symbol m}m^2)', a)
plot "newton.data" title "Dados" with xyerrorbars ls 1, f(x) title linear(a) w
l ls 2

You might also like