PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : TikZ/pgfplots Legende ohne Rahmen



Cerebellum
16-06-2012, 13:49
Hallo alle zusammen,

ich möchte meine Legende im Diagramm, welches ich mit tikz/pgfplots erstellt habe, ohne Rahmen darstellen lassen. Ich habe schon versucht, mit legend style={line width=0pt} herum zu experimentieren, aber das funktioniert nicht.
Weiß einer von euch Hilfe?



\documentclass{scrreprt}
\usepackage{tikz}
\usepackage{pgfplots}

\begin{document}
\begin{tikzpicture}
\begin{axis}[ xmin=0, xmax=10, ymin=0, ymax=300, xlabel= {Distanz [\textmu m]}, ylabel= Relative Intensität, width=0.6\textwidth, height=0.3\textwidth, legend cell align=left]

\addplot[color=green, mark=none, line width=.75pt] table[x index = 0, y index=1] {6Mitop.dat}; \addlegendentry{Protein};

\addplot[color=red, mark=none,line width=.75pt] table[x index = 0, y index=2] {6Mitop.dat}; \addlegendentry{Mitochondrien};

\end{axis}
\end{tikzpicture}%

\end{document}

mechanicus
16-06-2012, 13:55
Die Option ist in der Doku beschrieben:


legend style={draw=none}

Cerebellum
16-06-2012, 14:21
Danke für die schnelle Hilfe! Funktioniert :)
In meiner Doku hab ichs nicht gefunden (Manual for Package pgfplots, Version 1.4.1, Aug 2010 von Christian Feuersänger).

Viele Grüße