von Gast » Mo 31. Okt 2016, 14:20
In der [d]pgfplots[/d]-Doku ist auch angeben, dass das letztlich nur eine Abkürzung ist. Man kann also fehlende Platzierungsoptionen auch einfach durch die entsprechenden Stil-Erweiterungen bilden:
\documentclass[a4paper]{article}
%% Language and font encodings
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}% utf8x nur wenn unbedingt notwendig, weil es gerne Probleme macht!
\usepackage[T1]{fontenc}
%% Sets page size and margins
\usepackage[a4paper,top=3cm,bottom=2cm,left=3cm,right=3cm,marginparwidth=1.75cm]{geometry}
%% Useful packages
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{pgfplots}
\pgfplotsset{width=7cm,compat=1.3}
\begin{document}
\begin{tikzpicture}
\begin{axis}[every axis legend/.append style={at={(0.5,0)},anchor=south}]
\addplot coordinates {(0,0) (1,1)};
\addplot coordinates {(0,1) (1,2)};
\addplot coordinates {(0,2) (1,3)};
\legend{$l_1$,$l_2$,$l_3$}
\end{axis}
\end{tikzpicture}
\end{document}
BTW: 1.3 ist schon reichlich alt!!! Wir sind inzwischen bei Version 1.14 angelangt. Overleaf hat immerhin bereits 1.12. Wenn du wirklich kein neues
pgfplots hast, dann solltest du updaten!
In der [d]pgfplots[/d]-Doku ist auch angeben, dass das letztlich nur eine Abkürzung ist. Man kann also fehlende Platzierungsoptionen auch einfach durch die entsprechenden Stil-Erweiterungen bilden: [code]\documentclass[a4paper]{article}
%% Language and font encodings
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}% utf8x nur wenn unbedingt notwendig, weil es gerne Probleme macht!
\usepackage[T1]{fontenc}
%% Sets page size and margins
\usepackage[a4paper,top=3cm,bottom=2cm,left=3cm,right=3cm,marginparwidth=1.75cm]{geometry}
%% Useful packages
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{pgfplots}
\pgfplotsset{width=7cm,compat=1.3}
\begin{document}
\begin{tikzpicture}
\begin{axis}[every axis legend/.append style={at={(0.5,0)},anchor=south}]
\addplot coordinates {(0,0) (1,1)};
\addplot coordinates {(0,1) (1,2)};
\addplot coordinates {(0,2) (1,3)};
\legend{$l_1$,$l_2$,$l_3$}
\end{axis}
\end{tikzpicture}
\end{document}[/code]
BTW: 1.3 ist schon reichlich alt!!! Wir sind inzwischen bei Version 1.14 angelangt. Overleaf hat immerhin bereits 1.12. Wenn du wirklich kein neues [p]pgfplots[/p] hast, dann solltest du updaten!