Sorry, this question must be utterly stupid, but I am unable to run a TikZ figure script.
I have put \usepackage{tikz} in the preamble. But, it gets stuck after the first line in the document:
\begin{tikzpicture}
\begin{axis}[%
-> Environment axis undefined!
I have checked, but there is simply no package named "tikz" on CTAN, Am I checking the wrong spot? My document looks like this:
\documentclass[a4paper,12pt]{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[yscale=1.5]
\begin{tikzpicture}
\begin{axis}[%
width=4.52083333333333in,
height=3.565625in,
...
\end{tikzpicture}
\end{document}
Any help will be greatly appreciated.
\usepackage{pgfplots}which is a package built on top of TikZ for plotting and many other stuff. – percusse Jan 31 at 23:40\begin{tikzpicture}twice. You should delete the second one. You also need to end theaxisenvironment somewhere before the document ends. Theaxisenvironment belongs to thepgfplotspackage. You will need to load that one too. – Count Zero Jan 31 at 23:43! LaTeX Error: File tikz.sty not found.– Alan Munn Jan 31 at 23:47