von MenschMax » Mo 7. Nov 2016, 12:26
Huhu miteinander,
wie schaffe ich es denn den roten Punkt auch noch mit einer Legende zu versehen?
\documentclass[a4paper,12pt,twoside,parskip]{report}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{amsmath}
\usepackage{siunitx}
\usepackage{float}
\usepackage{pgfplots, pgfplotstable}
\pgfplotsset{compat=1.10}
\usepackage{tikz}
\begin{document}
\begin{figure}[htb]
\centering
\begin{minipage}[t]{.45\linewidth}
\begin{tikzpicture}
\begin{axis}[
height=6cm,
%width=8cm,
%enlargelimits=0.05,
%enlarge x limits={abs=50pt},
legend style={
at={(0.5,-0.3)},
anchor=north,
legend columns=-1
},
ymin=1.05,
ymax=1.09,
x tick label style={/pgf/number format/1000 sep=},
x tick label style={rotate=45,anchor=east},
symbolic x coords={Netz 3,Netz 2,Netz 1,Netz 0},
xtick={Netz 3,Netz 2,Netz 1,Netz 0},
ylabel={Temperaturkoeffizient $\eta$},
% ytick={1.04,1.05,...,1.08},
ymajorgrids,
nodes near coords,
%nodes near coords style={font=\footnotesize},% in Version 1.12 noch nicht definiert
every node near coord/.append style={font=\footnotesize},
point meta=explicit symbolic,
]
\addplot coordinates {
(Netz 3,1.068207757)
(Netz 2,1.06091633273556)
(Netz 1,1.05671331892126)
(Netz 0,1.06156263688163)
};
\legend{$\eta_{SD,Links}$}
\addplot coordinates {
(Netz 2,1.06438383302766)};
\end{axis}
\end{tikzpicture}
\end{minipage}
\begin{minipage}[t]{.45\linewidth}
\begin{tikzpicture}
\begin{axis}[
height=6cm,
%width=8cm,
%enlargelimits=0.05,
%enlarge x limits={abs=50pt},
legend style={
at={(0.5,-0.3)},
anchor=north,
legend columns=-1
},
ymin=1.05,
ymax=1.09,
x tick label style={/pgf/number format/1000 sep=},
x tick label style={rotate=45,anchor=east},
symbolic x coords={Netz 3,Netz 2,Netz 1,Netz 0},
xtick={Netz 3,Netz 2,Netz 1,Netz 0},
ylabel={Temperaturkoeffizient $\eta$},
% ytick={1.04,1.05,...,1.08},
ymajorgrids,
nodes near coords,
%nodes near coords style={font=\footnotesize},% in Version 1.12 noch nicht definiert
every node near coord/.append style={font=\footnotesize},
point meta=explicit symbolic,
]
\addplot coordinates {
(Netz 3,1.069865470984)
(Netz 2,1.07876174432551)
(Netz 1,1.08119539153172)
(Netz 0,1.07391283556381)
};
\addplot coordinates {
(Netz 2,1.08649630949369)};
\legend{$\eta_{SD,Rechts}$}
\end{axis}
\end{tikzpicture}
\end{minipage}
\end{figure}
\end{document}
Über einen Hinweis wäre ich dankbar!
Grüße max
Huhu miteinander,
wie schaffe ich es denn den roten Punkt auch noch mit einer Legende zu versehen?
[code]
\documentclass[a4paper,12pt,twoside,parskip]{report}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{amsmath}
\usepackage{siunitx}
\usepackage{float}
\usepackage{pgfplots, pgfplotstable}
\pgfplotsset{compat=1.10}
\usepackage{tikz}
\begin{document}
\begin{figure}[htb]
\centering
\begin{minipage}[t]{.45\linewidth}
\begin{tikzpicture}
\begin{axis}[
height=6cm,
%width=8cm,
%enlargelimits=0.05,
%enlarge x limits={abs=50pt},
legend style={
at={(0.5,-0.3)},
anchor=north,
legend columns=-1
},
ymin=1.05,
ymax=1.09,
x tick label style={/pgf/number format/1000 sep=},
x tick label style={rotate=45,anchor=east},
symbolic x coords={Netz 3,Netz 2,Netz 1,Netz 0},
xtick={Netz 3,Netz 2,Netz 1,Netz 0},
ylabel={Temperaturkoeffizient $\eta$},
% ytick={1.04,1.05,...,1.08},
ymajorgrids,
nodes near coords,
%nodes near coords style={font=\footnotesize},% in Version 1.12 noch nicht definiert
every node near coord/.append style={font=\footnotesize},
point meta=explicit symbolic,
]
\addplot coordinates {
(Netz 3,1.068207757)
(Netz 2,1.06091633273556)
(Netz 1,1.05671331892126)
(Netz 0,1.06156263688163)
};
\legend{$\eta_{SD,Links}$}
\addplot coordinates {
(Netz 2,1.06438383302766)};
\end{axis}
\end{tikzpicture}
\end{minipage}
\begin{minipage}[t]{.45\linewidth}
\begin{tikzpicture}
\begin{axis}[
height=6cm,
%width=8cm,
%enlargelimits=0.05,
%enlarge x limits={abs=50pt},
legend style={
at={(0.5,-0.3)},
anchor=north,
legend columns=-1
},
ymin=1.05,
ymax=1.09,
x tick label style={/pgf/number format/1000 sep=},
x tick label style={rotate=45,anchor=east},
symbolic x coords={Netz 3,Netz 2,Netz 1,Netz 0},
xtick={Netz 3,Netz 2,Netz 1,Netz 0},
ylabel={Temperaturkoeffizient $\eta$},
% ytick={1.04,1.05,...,1.08},
ymajorgrids,
nodes near coords,
%nodes near coords style={font=\footnotesize},% in Version 1.12 noch nicht definiert
every node near coord/.append style={font=\footnotesize},
point meta=explicit symbolic,
]
\addplot coordinates {
(Netz 3,1.069865470984)
(Netz 2,1.07876174432551)
(Netz 1,1.08119539153172)
(Netz 0,1.07391283556381)
};
\addplot coordinates {
(Netz 2,1.08649630949369)};
\legend{$\eta_{SD,Rechts}$}
\end{axis}
\end{tikzpicture}
\end{minipage}
\end{figure}
\end{document}
[/code]
Über einen Hinweis wäre ich dankbar!
Grüße max