You can put interpreter command between .control
and .endc
commands in the circuit file. This way they should run together with the simulation.
PS. For more involved plotting and post-processing you can start with tabular data from SPICE and feed it to gnuplot or Python+numpy+matplotlib.
PS. Keep in mind that ngspice is based on Berkeley Spice 3 (rewritten in C) while most commercial SPICE engines were based on the 2nd version (in Fortran). Differences are mostly with ngspice supporting textual node names and arbitrary mathematical functions in dependent current/voltage sources. This last thing frequently causes headaches when trying to use manufacturer provided IC models which use the old (and unsupported in ngspice) POLY
declaration.
edit
I presumed the RPi could be USB powered, but Tony points out that it's not recommended. That seems to be an understatement. The RPI doesn't seem to have a specification (!), at least I couldn't find it, but I did find others who had the same problem. So in the end you have to rely on third-party sources. :-(
RPi models A and B consume 500 mA and 700 mA, resp. (Though even that doesn't seem to be a solid spec, as this page says "provisional, from alpha board".)
So, if by "external power supply" you mean a USB host or powered hub, then the answer seems to be no, since USB doesn't have to provide more than 100 mA without negotiating. You'll need another power supply, like a 5 V regulated wall-wart.
Many Wifi modules are designed to operate at 3.3 V, but if you can't find a 3.3 V regulated wall-wart you can use a 5 V type, and use an LDO (Low Drop-Out) post-regulator to go from the wall-wart's 5 V to 3.3 V.
Even if the module works at 5 V you may have a connection problem, since, as I understand it, the Raspberry works at 3.3 V. So the output level of the Raspberry may be too low for the WiFi module (or probably just high enough), and the input to the Raspberry may be too high. If the inputs aren't 5 V tolerant the high level may damage the device.
So 3.3 V is probably the way to go. The 3.3 V version of this power module can supply 750 mA.
If you prefer to get your power from a 5 V supply then the NX1117CE33 is a suitable part: it can provide more than enough current for the WiFi module, and accepts input voltages up to 20 V (so an unregulated 12 V input can be used as well). But if you use a high input voltage you'll have to keep an eye on power dissipation.
Best Answer
There are different versions of this library for different processors. The A20 version will not work correctly on an H3 or H5 processor.
You can download the correct version for the A5 here