#!/usr/bin/gnuplot #set terminal postscript eps color enhanced solid font "Helvetica,16" size 8.6cm, 6cm # NOTE: gnuplot eps does not support transparency channel, so I use pdf instead. set terminal pdf transparent color enhanced solid font "Helvetica,12" size 8.6cm, 6.5cm #set terminal epslatex color set output "fig_isolation.pdf" ################################# ####### ####GENERAL SETTINGS#### set border linewidth 1.5 set samples 5000 set multiplot #set bar 2 unset bar unset key #set style fill solid 0.3 noborder ########################### ##### ##### unset key #unset xtics #unset xlabel #unset ytics #unset ylabel unset mytics set border 15 #set tmargin at screen 0.53 #set bmargin at screen 0.18 set lmargin at screen 0.15 #set rmargin at screen 0.95 f0 = 'data/x_gain_noload.dat' f1 = 'data/x_gain_1damp.dat' f2 = 'data/x_gain_3damp.dat' set ytics nomirror set xtics add (50,100,200, 500, 1000, 2000) nomirror #set yrange [0:1] #set xrange [-1300:200] set xlabel 'driving frequency (Hz)' set ylabel 'vibration gain ratio {/Symbol x}' unset label unset title unset grid set key top left set logscale xy set format y "10^{%L}" set style fill transparent solid 0.3 noborder # Convert data from dB power to absolute gain ratio plot f0 using 1:(10**($3/20)):(10**($4/20)) notitle with filledcurves lc 'black',\ f0 using 1:(10**($2/20)) title 'no damper' with lines lc 'black',\ f1 using 1:(10**($3/20)):(10**($4/20)) notitle with filledcurves lc 'red',\ f1 using 1:(10**($2/20)) title '1 damper' with lines lc 'red',\ f2 using 1:(10**($3/20)):(10**($4/20)) notitle with filledcurves lc 'blue',\ f2 using 1:(10**($2/20)) title '3 dampers' with lines lc 'blue' #################################