# 一招教你如何画出漂亮美观的电路图

## 一、AxGlyph

AxGlyph官方版是一款相当专业的实用型矢量绘图工具，AxGlyph最新版功能强悍，采用所见即所得操作界面，支持滚动式符号面板，多底色、面板符号定制和分页顺序调整，格式化图形，AxGlyph软件操作简便。

## 三、CircuiTikZ

``````texdoc circuitikz
``````

``````documentclass{article}

usepackage{ctex}
usepackage[siunitx, RPvoltages]{circuitikz}
usepackage{tikz}

begin{document}
%这是猫九第一次用tikz库绘制电路图。

begin{circuitikz}[scale=1.2,american voltages]
draw (0,2) to [I=1<milli ampere>] (2,2)
to [R,l_=2<kilo ohm>,*-*] (0,0)
to [R,l_=2<kilo ohm>] (2,0)
to [V,l_=2<volt>] (2,2)
to [cspst,l=\$t_0\$] (4,2) -- (4,1.5)
to [generic,i=\$i_0\$,v=\$v_1\$] (4,-0.5) --(4,-1.5)
(0,2) -- (0,-1.5) to [V,v=<volt>] (2,-1.5)
to [R,l=1<kilo ohm>] (4,-1.5);
end{circuitikz}

end{document}
``````

## 四、Python+SchemDraw

Schemdraw is a Python package for producing high-quality electrical circuit schematic diagrams. Circuit elements are added, one at a time, similar to how you might draw them by hand, using Python methods.

``````pip install schemdraw
``````
``````import schemdraw
import schemdraw.elements as elm

if __name__ == '__main__':
d = schemdraw.Drawing()
d += elm.Resistor().label('100KΩ')
d += elm.Capacitor().down().label('0.1μF', loc='bottom')
d += elm.Line().left()
d += elm.Ground()
d += elm.SourceV().up().label('10V')
d.draw()
``````

## 五、工具评测

AxGlyph 上手简单，界面友好 元件库少
EdrawSoft 上手简单，界面友好，元件库多 电路图不是很美观
CircuiTikZ 严谨，美观 学习成本高，花费时间长
SchemDraw 严谨，美观 学习成本高，花费时间长

THE END

)">