-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathFig_TEST.tex
23 lines (20 loc) · 1.47 KB
/
Fig_TEST.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
\begin{figure}
\begin{tikzpicture}
\pgfplotsset{table/search path={fig/ex05}}
\begin{groupplot}[group style={group size=1 by 3, xticklabels at = edge bottom, vertical sep=0.75cm}, height=0.375\textheight, width=0.875\textwidth, xmin=0, xmax=pi, grid,clip = false, ymin = -0.1, ymax =1.1, xtick = {0, pi/4, pi/2, 3*pi/4,pi}, xticklabels = {0,$\frac{1}{4}\pi$, $\frac{1}{2}\pi$,$\frac{3}{4}\pi$, $\pi$}, ytick = {-1, 0, 1}, yticklabels = {, 0, 1}]
% % Top plot: duty cycle and carrier signal
\nextgroupplot[ylabel = {$d(t), c(t)$}, legend pos=south east, legend columns=2]
\addplot[signalred, thick] table[x=wt, y=d, col sep=comma] {PWM_PFC_example.csv};
\addplot[signalblue, thick] table[x=wt, y=c, col sep=comma] {PWM_PFC_example.csv};
\legend{$d(t)$, $c(t)$}
% middle plot: switching signal
\nextgroupplot[ylabel = {$s(t)$}]
\addplot[signalblue, thick] table[x=wt, y=s, col sep=comma] {PWM_PFC_example.csv};
% bottom plot: current response
\nextgroupplot[ylabel = {$i_1(t)$}, xlabel={$\omega t$}, ytick = {-1, 0, 0.5, 1}, yticklabels = {}, legend columns=2]
\addplot[signalred, thick] table[x=wt, y=i1, col sep=comma] {PWM_PFC_example.csv};
\addplot[thick, dashed] table[x=wt, y=i1ref, col sep=comma] {PWM_PFC_example.csv};
\legend{$i_1(t)$, $i_1^{(1)}(t)$}
\end{groupplot}
\end{tikzpicture}
\end{figure}