Last post, I only intro how we can save the data and plot in text files. Actually we can plot the SPICE data in graphical mode, but you will need ‘gwave’ and a SPICE raw file. So go and get gwave:
sudo apt-get install gwave
‘gwave’ is a nice waveform viewer, it capable to read a binary or ASCII files generated by HSPICE, raw file written by SPICE2, SPICE3 and ngspice.
Next you need to generate a raw file, instead of using ‘-o’ you need to use ‘-r’:
ngspice -b circuit.cir -r circuit.out
after the simulation is done, enter this command:
or you can start the gwave, go to menu and click on ‘File->Read File…’ to choose any file you need to open.