#!/usr/local/bin/gnuplot -persist # set terminal canvas rounded size 600,400 enhanced fsize 10 lw 1.6 fontscale 1 name "errorbars_4" jsdir "." # set output 'errorbars.4.js' set style data lines set title "error represented by yerrorbars" set xlabel "Resistance [Ohm]" set xrange [ * : * ] noreverse writeback set x2range [ * : * ] noreverse writeback set ylabel "Power [W]" set yrange [ * : * ] noreverse writeback set y2range [ * : * ] noreverse writeback set zrange [ * : * ] noreverse writeback set cbrange [ * : * ] noreverse writeback set rrange [ * : * ] noreverse writeback set colorbox vertical origin screen 0.9, 0.2 size screen 0.05, 0.6 front noinvert bdefault n(x)=1.53**2*x/(5.67+x)**2 ## Last datafile plotted: "battery.dat" plot [0:50] "battery.dat" u 1:2:4 t "Power" w yerr, n(x) t "Theory" w lines