From 02c323855d3d7e4448c8dbd2515ad393263fc789 Mon Sep 17 00:00:00 2001 From: surtur Date: Fri, 27 Nov 2020 00:05:51 +0100 Subject: [PATCH] chore: add plot --- ZM_03.tex | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/ZM_03.tex b/ZM_03.tex index d01599b..ca48f3e 100644 --- a/ZM_03.tex +++ b/ZM_03.tex @@ -14,6 +14,8 @@ \usepackage{hyperxmp} \usepackage[affil-it]{authblk} \usepackage{enumitem} +\usepackage{pgfplots} +\pgfplotsset{width=1.0\textwidth} \usepackage{graphicx} \graphicspath{ {./img/} } @@ -111,6 +113,43 @@ Vyvedené elektrody se nazývají emitor, báze, kolektor. vytvoří graf (výstupní charakteristika). \end{enumerate} +\begin{figure}[!hbt] +\centering +\begin{tikzpicture} +\begin{axis}[ + xlabel={$U_{CE}$ [V]}, + ylabel={$I_c$ [mA]}, + xmin=0, xmax=2.5, + ymin=0, ymax=7, + xtick={0,0.5,1,1.5,2}, + ytick={0,1,2,3,4,5,6,7}, + legend pos=south east, + ymajorgrids=true, + grid style=dashed, +] + + \addplot[ + color=blue, + mark=halfcircle*, + ] + coordinates { + (0,0)(0.05,0.093)(0.1,0.694)(0.15,2.05)(0.2,2.812)(0.25,2.971)(0.275,2.989)(0.3,2.996)(0.4,3)(1,3)(2,3) + }; + \addlegendentry{$I_b$ = 20{\textmu}A} + \addplot[ + color=orange, + mark=halfcircle*, + ] + coordinates { + (0,0)(0.05,0.188)(0.1,1.338)(0.15,4.1)(0.2,5.625)(0.25,5.943)(0.275,5.978)(0.3,5.992)(0.4,6)(1,6)(2,6) + }; + \addlegendentry{$I_b$ = 40{\textmu}A} + +\end{axis} +\end{tikzpicture} +\caption{Výstupní charakteristika NPN tranzistoru} +\end{figure} + \newpage \section{Zapojení bipolárního tranzistoru ve funkci spínače}