答案1
如果我理解正确的话,你正在寻找小域和宽图:
\documentclass[margin=3.14159]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.17}
\begin{document}
\begin{tikzpicture}
\begin{axis}[width=10cm, % <---
declare function = {f(\t)=abs(16*(\t)^3-24*(\t)^2+12*(\t)+1);},
axis lines=middle,
enlargelimits=0.1,
every axis plot post/.append style={very thick},
no marks,
domain=-1:1 % <---
]
\addplot {f(x)};
\end{axis}
\end{tikzpicture}
\end{document}
或者在稍微大一点的域中(通过添加/更改˙axisi 选项):
domain=-1:2, % changed
restrict y to domain=0:50, % added
samples=100 % added