some tiny updates to the plot commands

This commit is contained in:
Holger Vogt 2020-02-28 18:08:44 +01:00
parent 2a7f186c0a
commit 4e1fd88466
1 changed files with 8 additions and 6 deletions

View File

@ -124,16 +124,17 @@ if $?batchmode
rusage rusage
quit quit
else else
set nolegend
if $?sharedmode or $?win_console if $?sharedmode or $?win_console
gnuplot xnp_pl1 {$plot_out}.vout0 $ just plot the tran output with nominal parameters gnuplot xnp_pl1 {$plot_out}.vout0 ylabel vout0 $ just plot the tran output with nominal parameters
else else
plot {$plot_out}.vout0 $ just plot the tran output with nominal parameters plot {$plot_out}.vout0 ylabel vout0 $ just plot the tran output with nominal parameters
end end
setplot $plot_fft setplot $plot_fft
if $?sharedmode or $?win_console if $?sharedmode or $?win_console
gnuplot xnp_pl2 db(mag(ally)) xlimit 0 1G ylimit -80 10 gnuplot xnp_pl2 db(mag(ally)) ylabel 'output voltage versus frequency' xlimit 0 1G ylimit -80 10
else else
plot db(mag(ally)) xlimit 0 1G ylimit -80 10 plot db(mag(ally)) xlimit 0 1G ylimit -80 10 ylabel 'output voltage versus frequency'
end end
* *
* create a histogram from vector maxffts * create a histogram from vector maxffts
@ -166,9 +167,10 @@ else
* plot the histogram * plot the histogram
let count = yvec - 1 $ subtract 1 because we started with unitvec containing ones let count = yvec - 1 $ subtract 1 because we started with unitvec containing ones
if $?sharedmode or $?win_console if $?sharedmode or $?win_console
gnuplot np_pl3 count vs osc_frequ combplot gnuplot np_pl3 count vs osc_frequ combplot ylabel 'counts per bin'
else else
plot count vs osc_frequ combplot set xbrushwidth=5
plot count vs osc_frequ combplot ylabel 'counts per bin'
end end
* calculate jitter * calculate jitter
let diff40 = (vecmax(halfffts) - vecmin(halfffts))*1e-6 let diff40 = (vecmax(halfffts) - vecmin(halfffts))*1e-6