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

  • Post author:
  • Post category:其他




一、AxGlyph

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

下载地址:

https://www.amyxun.com/


软件界面:

在这里插入图片描述

随便画一个电路图试试:

在这里插入图片描述



二、EdrawSoft

下载地址:

https://www.edrawsoft.cn/edrawmax/


软件界面:

在这里插入图片描述

随便画一个电路图试试:

在这里插入图片描述



三、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进行安装:

pip install schemdraw

官方文档在这里:<

Schemdraw documentation — SchemDraw 0.12 documentation

>

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 严谨,美观 学习成本高,花费时间长

你学废了吗?

欢迎大家点赞评论,有什么问题也可以私信我呀!




版权声明:本文为weixin_48276030原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。