I'm trying to see some waveform plots for SPICE circuits with ngspice. As far as I can tell, the plot command is supposed to raise a window with a nice chart in it. But I keep getting this error message:

ERROR: (internal)  This operation is not defined for display type printf.
Can't open viewport for graphics.

I'm on linux mint 17.3 (ubuntu 10.04 lucid?).

I've tried:

But I'm still seeing this error message. Any ideas?


1 Answer 1


PEBACK - I was running my script in batch mode, thinking that stuff in .control would run automatically, pop up a waveform window and exit.

Batch mode does not do this.

Instead, just ngspice circuit.cir.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.