von Vaschan » Mi 25. Jan 2017, 11:38
Hallo zusammen,
ich würde gerne Dezimalzahlen in meiner Legende angezeigt bekommen. Leider ist Komma ja schon der Trenner der Legendenelemente.
Hat jemand dafür eine Lösung?
Vielen Dank!
\documentclass[12pt,titlepage,a4paper]{report}
\usepackage[pdftex]{graphicx}
\usepackage{pgfplots}
\usepackage{subfigure}
\begin{document}
\begin{figure}[tbh]
\begin{tikzpicture}
\begin{axis}[
legend style={at={(0.5,1)},anchor=south , legend columns = 3}]
\addplot coordinates {(0,0) (1,1)};
\addplot coordinates {(0,1) (1,2)};
\addplot coordinates {(0,2) (1,3)};
\legend{$c=1,5$ ,$b=1,6$, $a=1,4$}
\end{axis}
\end{tikzpicture}
\end{figure}
\end{document}
Hallo zusammen,
ich würde gerne Dezimalzahlen in meiner Legende angezeigt bekommen. Leider ist Komma ja schon der Trenner der Legendenelemente.
Hat jemand dafür eine Lösung?
Vielen Dank!
[code]
\documentclass[12pt,titlepage,a4paper]{report}
\usepackage[pdftex]{graphicx}
\usepackage{pgfplots}
\usepackage{subfigure}
\begin{document}
\begin{figure}[tbh]
\begin{tikzpicture}
\begin{axis}[
legend style={at={(0.5,1)},anchor=south , legend columns = 3}]
\addplot coordinates {(0,0) (1,1)};
\addplot coordinates {(0,1) (1,2)};
\addplot coordinates {(0,2) (1,3)};
\legend{$c=1,5$ ,$b=1,6$, $a=1,4$}
\end{axis}
\end{tikzpicture}
\end{figure}
\end{document}[/code]