I can draw polynomials using Tikz in Latex but I am not able to draw graphs of logarithms,exponential etc.
Asked
Active
Viewed 3,336 times
1
1 Answers
5
You can try some thing like this:
\documentclass{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.3}
\begin{document}
\begin{tikzpicture}
\begin{axis}[restrict y to domain=-10:10]
\addplot [blue,domain=-10:10, samples=200]{log10(x)};
\addplot [red, domain=-10:10, samples=200]{exp(x)};
\end{axis}
\end{tikzpicture}
\end{document}
You can refer to the PGFPLOTS manual for more plots.
AboAmmar
- 46,352
- 4
- 58
- 127

pgfplotsquestions – cmhughes Nov 02 '15 at 17:25