The instuction for analysis by python

Import library

Instructions to import ngspice libraray from Python

from analysis import ng

Convert

Convert circuit to netlist

ng.netList();

Parameter modification

Modify the parameter in the circuit

ng.param(name,value);

Run

Analysis and exicuite ciruict

ng.run(analysis)

The analysis result

Get values from the analysis result.

*outputs_values=ng.run(*outputs_names)

plot data

Plot data by using plotly

ng.plotly('name of plot', data, layout)
ng.show()