.title sch-rnd export using export_spice

*** circuit ***
V1 in 0 dc 0 ac 1
C1 anon_net_3 0 1u
C2 out 0 100n
R1 in anon_net_3 10k
R2 anon_net_3 out 1k

*** sch-rnd/export_spice: commands ***
.control

ac dec 10 1 100k

settype decibel out
plot vdb(out) xlimit 1 100k ylabel 'small signal gain'

settype phase out
plot cph(out) xlimit 1 100k ylabel 'phase (in rad)'

let outd = 180/PI*cph(out)
settype phase outd
plot outd xlimit 1 100k ylabel 'phase (in deg)'


.endc
.end
