I want to make a sine graph that translates horizontally, but do not know what attribute allows me to do this. There is a list of attributes on the TikZ manual chapter 116.2.1, but I can't mane any of them work.
A general way to make a number which changes over time either as a constant or coefficient in the addplot coommand would be very helpful, thanks.
MWE:
\documentclass[dvisvgm]{standalone}
\usepackage{tikz}
\usetikzlibrary{animations}
\usepackage{pgfplots}
\usepgfmodule{animations}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}[]
\begin{axis}[]
\pgfanimateattribute{}{
whom = addplot, entry = {0s}{1}, entry = {2s}{3} }
\addplot[]{sin(deg(x))};
\end{axis}
\end{tikzpicture}
\end{document}