答案1
这是您的图表的模板,您只需插入数据。
\documentclass{article}
\usepackage{pgfplots}
\usepackage{siunitx}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
scale only axis,
height=5cm,
width=\textwidth,
xmin=0, xmax=7.5,
ymin=0, ymax=15,
xtick={0,0.5,...,7.5},
minor x tick num=4,
ytick={0,5,...,15},
minor y tick num=4,
xticklabel style={/pgf/number format/.cd, fixed, fixed zerofill, precision=1},
tick pos=left,
ymajorgrids,
ylabel=Kraft F in \si{\kilo\newton}
]
\addplot[mark=*] coordinates {
(0,0)
(0.2,7)
(1,8)
(4,11)
(7,9)
};
\end{axis}
\end{tikzpicture}
\end{document}