gnucap file:
* Hello :D this is a file created to be read by gnucap in batch mode
* circuit definition (netlist)
R1 0 1 100k
* This one has an initial voltage
C1 1 2 680n IC=12
L1 2 0 20m
* Then we'll have some parameters and stuff for gnucap
* This tells how the data will be printed after the .transient analysis
.print tran v(1)
* start at 0, analyse until 0.5s with leaps of 0.001s
* uic: use initial conditions (like the voltage of capacitor C1)
* > data.out : put the data in a file, do not show it!
.tran 0 0.5s 0.001s uic > data.out
.END
gnuplot file:
# This is a file to be used with gnuplot
# we will use columns 1 and 2
plot "data.out" using 1:2 with lines
# wait for user input
pause -1