von basti-fantasti-48 » Fr 8. Mär 2024, 10:08
Danke
@Stefan Kottwitz
\documentclass[border=10pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}\begin{tikzpicture}
\centering
\begin{axis}[
%xtick=\empty,ytick=\empty,
xlabel={$t$},
ylabel={$Q(t) F(t)$},
ymax=1,
grid=major,
domain=0:5,
samples=100,
width=\textwidth,
height = 8cm,
axis lines=left,
%heigth=5cm,
legend pos=south east, % Legende oben rechts
]
\addplot[red,line width=1.5pt] {mod(\x,1)<1? mod(\x,1):0};
\addlegendentry{$Q(t)$};
\addplot[blue,line width=1.5pt]{0.2*x};
\addlegendentry{$F(t)$};
\end{axis}
\end{tikzpicture}
\end{document}
Der Sägezahn sollte im Bereich t 0 bis 1 auf 0,2 steigen dann wieder auf 0 (dann das gleiche) Wie geht das ich schaffe es nicht
Danke [mention]Stefan Kottwitz[/mention]
[code]\documentclass[border=10pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}\begin{tikzpicture}
\centering
\begin{axis}[
%xtick=\empty,ytick=\empty,
xlabel={$t$},
ylabel={$Q(t) F(t)$},
ymax=1,
grid=major,
domain=0:5,
samples=100,
width=\textwidth,
height = 8cm,
axis lines=left,
%heigth=5cm,
legend pos=south east, % Legende oben rechts
]
\addplot[red,line width=1.5pt] {mod(\x,1)<1? mod(\x,1):0};
\addlegendentry{$Q(t)$};
\addplot[blue,line width=1.5pt]{0.2*x};
\addlegendentry{$F(t)$};
\end{axis}
\end{tikzpicture}
\end{document}[/code]
Der Sägezahn sollte im Bereich t 0 bis 1 auf 0,2 steigen dann wieder auf 0 (dann das gleiche) Wie geht das ich schaffe es nicht