Browse Source

some tiny updates to the plot commands

pre-master-46
Holger Vogt 6 years ago
parent
commit
9e392c113a
  1. 14
      examples/Monte_Carlo/MC_ring_ts.sp

14
examples/Monte_Carlo/MC_ring_ts.sp

@ -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

Loading…
Cancel
Save