有人能帮我画这个图吗?

有人能帮我画这个图吗?

我是 Tikz 新手。如果有人知道如何绘制跟踪图,那对我很有帮助

在此处输入图片描述

答案1

在此处输入图片描述

pgfplots

\documentclass[border=3.141592]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.17}
\usetikzlibrary{shapes.misc}

\begin{document}
    \begin{tikzpicture}[
lbl/.style = {inner sep=1pt, near end, auto},
tck/.style = {cross out, draw=#1, semithick, inner sep=4pt,
              append after command={node[circle, draw=#1, semithick, 
                                         inner sep=2pt, outer sep=1pt] at (\tikzlastnode) {}}
              }
                        ]
\begin{axis}[
    axis lines=middle,
    x label style={anchor=north east},
    domain = -7:7, samples=101,
    xmin=-9, xmax=9,  xlabel=$x$, xtick={-8,-7,...,8},  xticklabel=\empty,
    ymin=-3, ymax=12, ylabel=$y$, ytick={-2,-1,...,11}, yticklabel=\empty,
    ticklabel style={font=\footnotesize},
    extra x ticks={1},  extra x tick label=1,
    extra y ticks={1},  extra y tick label=1,
    every axis plot post/.append style={thick},
    no marks
            ]
\addplot {0.25*x^2} node[lbl]  {$0.25x^2$};
\addplot {0.6*x+5}  node[lbl,sloped] {$0.6x+5$};
\path (4,4) node[tck=blue] {}; 
\end{axis}
    \end{tikzpicture}
\end{document}

相关内容