晚上好,我想绘制这个有两张图的图,我使用了 tikzpicture 包和轴。
图形是信号输入(左),另一个是信号输出(下)。
我想复制这个图表。 就像我刚才做的这个图形,蓝点是一个点操作。
这是我的代码。
\begin{tikzpicture}
\begin{axis}[axis lines= middle, xlabel={$V[v]$}, ylabel={$I$}, xlabel style={above right},ylabel style={above left}, xmin= 0, xmax = 10, ymin=0, ymax = 0.001, y post scale = 1.5]
\addplot[domain= 0:10, samples = 100, thick,green] {((-0.0001)*x)+0.001)};
\addplot[red, mark=*, only marks] coordinates{(0.1,0)};
\addplot[red, mark=*, only marks] coordinates{(0.19,0.000001)};
\addplot[red, mark=*, only marks] coordinates{(0.29,0.000001)};
\addplot[red, mark=*, only marks] coordinates{(0.36,0.000004)};
\addplot[red, mark=*, only marks] coordinates{(0.40,0.00001)};
\addplot[red, mark=*, only marks] coordinates{(0.40,0.00002)};
\addplot[red, mark=*, only marks] coordinates{(0.45,0.000025)};
\addplot[red, mark=*, only marks] coordinates{(0.46,0.000034)};
\addplot[red, mark=*, only marks] coordinates{(0.45,0.000045)};
\addplot[red, mark=*, only marks] coordinates{(0.48,0.000052)};
\addplot[red, mark=*, only marks] coordinates{(0.50,0.00015)};
\addplot[red, mark=*, only marks] coordinates{(0.50,0.00025)};
\addplot[red, mark=*, only marks] coordinates{(0.57,0.00034)};
\addplot[blue, mark=*, only marks] coordinates{(0.60,0.00094)};
\draw (axis cs: 0.1,0) circle [radius=1];
\draw (axis cs: 0.19,0.000001) circle [radius=1];
\draw (axis cs: 0.29,0.000001) circle [radius=1];
\draw (axis cs: 0.36,0.000004) circle [radius=1];
\draw (axis cs: 0.40,0.00001) circle [radius=1];
\draw (axis cs: 0.40,0.00002) circle [radius=1];
\draw (axis cs: 0.45,0.000025) circle [radius=1];
\draw (axis cs: 0.46,0.000034) circle [radius=1];
\draw (axis cs: 0.45,0.000045) circle [radius=1];
\draw (axis cs: 0.48,0.000052) circle [radius=1];
\draw (axis cs: 0.50,0.00015) circle [radius=1];
\draw (axis cs: 0.50,0.00025) circle [radius=1];
\draw (axis cs: 0.57,0.00034) circle [radius=1];
\draw (axis cs: 0.60,0.00094) circle [radius=1];
\end{axis}
\end{tikzpicture}
答案1
这是我针对您所问的同一主题所做的投影仪演示(的摘录)。
但请注意:
- 这是相当先进的 Ti钾Z/用法;我建议你从和 Ti
pgfplots
开始pgfplots
钾Z(如果你需要的话circuitikz
)教程前深入研究这段代码; - 这是一个
beamer
演示,因此增加了叠加的复杂性,以便逐步获得图形构建;同样,对于 beamer 来说也有非常好的教程; - 是的,这些工具的学习曲线很陡,因此,如果您想避免挫败感,请按照教程路径操作(或放弃并使用其他工具