如何绘制 y=(x-1)^(1/3)

如何绘制 y=(x-1)^(1/3)

我只想(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}

相关内容