# What is the PSTricks equivalent for 'control' in Tikz?

by Trong Vuong   Last Updated May 16, 2019 00:23 AM

\documentclass[tikz,border=5mm]{standalone}
\usepackage{tikz}
\usetikzlibrary{calc}
\begin{document}
%==================
\begin{tikzpicture}[scale=1, font=\footnotesize, line join=round, line cap=round, >=stealth]
\draw[->] (-0.5,0) -- (4,0) node[below] {$x$};
\draw[->] (0,-2) -- (0,3) node[left] {$y$};
\draw($(0,0)$)node[below left]{$O$};

\draw[blue] (-95:0.8)+(0,-1)..controls +(85:8) and +(-100:5)..(2,1)
..controls +(-70:1) and +(-110:0.5)..(3,2)
..controls +(-80:1) and +(95:0.5)..(3.4,-0.8)node[right]{$y=f'(x)$};

\draw[dashed] (2,0)node[below]{$2$}|-(0,1)node[left]{$1$};
\draw[dashed] (3,0)node[below]{$3$}|-(0,2)node[left]{$2$};
\draw[dashed] (0,-1)node[left]{$-1$};
\end{tikzpicture}
\end{document}


P/s: I need a official way which will be used in the future.

Tags :

## Related Questions

Updated January 26, 2018 16:23 PM

Updated October 25, 2017 04:23 AM

Updated November 25, 2018 07:23 AM

Updated March 28, 2015 15:08 PM

Updated April 05, 2015 16:09 PM