gnuplot one graph with two axes (dB and intensity) -


i need plot 1 graph representing sound in function of duration. sound needs scaled intensity (power) , db.

here have tried far:

gnuplot <<eof  # first part duration easy set terminal png size 1024,768 enhanced font "helvetica,20" set output 'output.png' set yrange [0:60]; set ylabel "duration"; set ytics 5 nomirror textcolor lt 1;  # second part intensity , db set xrange [0:100]; set xlabel "intensity"; set xtics 5 nomirror textcolor lt 1; set x2range [0:10]; set x2label "db"; set x2tics 5 nomirror textcolor lt 1; plot \ "data.dat" using 2:1 axes x1y1 title 'graph' points pt 7 ps 4,\ "data.dat" using 2:1 linetype 1 axes x2y1 title ''; 

the trouble if 2 axes originates , terminates correctly, dispersion of values db (log(intensity/intensity_ref)) not same of intensity, proportional.

how can specify formula 1 axe? not sound graphics, possible specify formula dispersion around 1 axe? (i if can have 2 x axes with, say, x , x^2 dispersion).

many thanks!

to plot intensity in linear scale on 1 axis , in db on other axis must apply appropriate scaling on respective columns:

plot 'data.dat' using 2:1, 'data.dat' using (log10(column(2))):1 axes x2y1 

Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -