![如何绘制 y=(x-1)^(1/3)](https://linux22.com/image/454360/%E5%A6%82%E4%BD%95%E7%BB%98%E5%88%B6%20y%3D(x-1)%5E(1%2F3).png)
我只想(x-1)^(1/3)
通过tikzpicture
坐标轴网格进行绘图,而不是使用pspicture
。(在这篇文章中如何绘制 x^(1/3)?,用作pspicture
)
\begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=1.0cm,y=1.0cm,scale=.75]
\draw [line width=0.3pt,pink](-3,-3) grid (3,3);
\draw[>=latex,->,color=black,] (-3,0) -- (3,0);
\foreach \x in {-1,1}
\draw[shift={(\x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) node[below] {\footnotesize $\x$};
\draw[>=latex,->,color=black] (0,-3) -- (0,3);
\foreach \y in {}
\draw[shift={(0,\y)},color=black] (2pt,0pt) -- (-2pt,0pt);
%\draw[color=black] (0pt,-1pt) node[below left] {\footnotesize $0$};
\node at (3,0) [right] {\small $x$};
\node at (0,3) [above ] {\small $y$};
\draw [line width=1pt,red,samples=200] plot[domain=-3:3](\x,{((\x)-1)^(1/3)});
\draw [fill=blue] (0,0) circle (3pt);
\end{tikzpicture}