Legende unten mittig einfügen
Verfasst: Mo 31. Okt 2016, 13:17
Hallo zusammen,
das Programm stammt aus der Doku. Ich hätte jetzt gerne die Legende unten mittig statt auf der linken Seite. Nur South geht leider nicht.
Jemand eine Idee? Vielen Dank
\documentclass[a4paper]{article} %% Language and font encodings \usepackage[english]{babel} \usepackage[utf8x]{inputenc} \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}[legend pos=south west] \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}
Jemand eine Idee? Vielen Dank