Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

The following code does not compile. I use the following packages.

\documentclass[12pt]{article}
\renewcommand{\textheight}{620pt}
\renewcommand{\textwidth}{450pt}
\usepackage{amssymb}
\usepackage{tikz}
\usepackage{subfig}
\usetikzlibrary{calc,shadings}
\usepackage{pgfplots}
\usepgflibrary{shapes.geometric}


\begin{tikzpicture}
\begin{axis}[legend cell align=center,legend pos=outer north east]
\addplot coordinates {(0,0) (1,1)};
\addplot coordinates {(0,1) (1,2)};
\addplot coordinates {(0,2) (1,3)};
\legend{a,fine,legend}
\end{axis}
\end{tikzpicture}
share|improve this question
2  
Did you read the error message? It's missing \begin{document}... \end{document} :) – percusse Aug 23 '12 at 6:47
No, I use that. without using [legend cell align=center,legend pos=outer north east], it works. – user12290 Aug 23 '12 at 6:52
@user12290: In your example document, \begin{document}...\end{document} is missing. If I add that back in, the example compiles correctly (with the legend outside the top right corner of the plot). – Jake Aug 23 '12 at 6:54
For me your code snippet with the addition of \begin{document}...\end{document} works. – Claudio Fiandrino Aug 23 '12 at 6:54

closed as too localized by Jake, Claudio Fiandrino, percusse, Ian Thompson, cmhughes Aug 23 '12 at 14:53

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

Browse other questions tagged or ask your own question.