题库
试卷
组卷
图库
知识
抛物线
核心代码解释:
抛物线 y^2=x 曲线
\documentclass[tikz,border=10pt]{standalone} \usetikzlibrary{positioning, calc} \begin{document} \begin{tikzpicture} \draw[->] (-2,0) -- (4,0) node[below] {$x$}; %作x轴并标上字母 \draw[->] (0,-3) -- (0,3) node[left] {$y$}; %作y轴并标上字母 \node[below left] at (0,0) {$O$}; %标上原点字母 \draw [domain=-2:2] plot ( \x * \x , \x); % y^2=x \end{tikzpicture} \end{document}