von Gast » Mi 17. Okt 2018, 11:02
Meinst du so etwas wie
\addplot+[mark=otimes*,every mark/.append style={xshift=-3mm,yshift=3mm}] plot[error bars/.cd, y dir=both,y explicit] coordinates {
(1,350) +- (4.6,4.6)
(2,360) +- (9.5,9.5)
(3,400) +- (7.5,7.5) };
Also beispielsweise:
\documentclass{scrbook}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\begin{document}
\begin{figure}[htb]
\centering
\begin{tikzpicture}[farbe/.style={draw=#1,fill=#1}]
\begin{axis}[
axis y line*=left,
yticklabel pos=left,
width=0.90\textwidth,
height=0.45\textheight,
xtick = {1,...,3},
xticklabels={a,b,c},
x tick label style={rotate=0},
enlarge x limits=0.2,
minor tick num=0,
ymajorgrids,
ybar=3mm,
ymin=0,ymax=1000,
xtick=data
]
\addplot+[mark=otimes*,every mark/.append style={xshift=-3mm,yshift=3mm}] plot[error bars/.cd, y dir=both,y explicit] coordinates {
(1,350) +- (4.6,4.6)
(2,360) +- (9.5,9.5)
(3,400) +- (7.5,7.5) };
\addplot+ coordinates {};
\end{axis}
\begin{axis}[
width=0.90\textwidth,
height=0.45\textheight,
axis y line*=right,
yticklabel pos=right,
xtick = {1,...,3},
xticklabels={a,b,c},
enlarge x limits=0.2,
ybar=3mm,
ymin=0, ymax=25,
axis x line=none
]
\addplot+ coordinates {};
\addplot+[mark=diamond,every mark/.append style={xshift=3mm,yshift=3mm}] plot[error bars/.cd, y dir=both,y explicit] coordinates {
(1,13.3) +- (0.2,0.2)
(2,14.8) +- (0.1,0.1)
(3,13.2) +- (0.2,0.2) };
\end{axis}
\end{tikzpicture}
\caption{test}
\end{figure}
\end{document}
Meinst du so etwas wie [code] \addplot+[mark=otimes*,every mark/.append style={xshift=-3mm,yshift=3mm}] plot[error bars/.cd, y dir=both,y explicit] coordinates {
(1,350) +- (4.6,4.6)
(2,360) +- (9.5,9.5)
(3,400) +- (7.5,7.5) };[/code]
Also beispielsweise: [code]\documentclass{scrbook}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\begin{document}
\begin{figure}[htb]
\centering
\begin{tikzpicture}[farbe/.style={draw=#1,fill=#1}]
\begin{axis}[
axis y line*=left,
yticklabel pos=left,
width=0.90\textwidth,
height=0.45\textheight,
xtick = {1,...,3},
xticklabels={a,b,c},
x tick label style={rotate=0},
enlarge x limits=0.2,
minor tick num=0,
ymajorgrids,
ybar=3mm,
ymin=0,ymax=1000,
xtick=data
]
\addplot+[mark=otimes*,every mark/.append style={xshift=-3mm,yshift=3mm}] plot[error bars/.cd, y dir=both,y explicit] coordinates {
(1,350) +- (4.6,4.6)
(2,360) +- (9.5,9.5)
(3,400) +- (7.5,7.5) };
\addplot+ coordinates {};
\end{axis}
\begin{axis}[
width=0.90\textwidth,
height=0.45\textheight,
axis y line*=right,
yticklabel pos=right,
xtick = {1,...,3},
xticklabels={a,b,c},
enlarge x limits=0.2,
ybar=3mm,
ymin=0, ymax=25,
axis x line=none
]
\addplot+ coordinates {};
\addplot+[mark=diamond,every mark/.append style={xshift=3mm,yshift=3mm}] plot[error bars/.cd, y dir=both,y explicit] coordinates {
(1,13.3) +- (0.2,0.2)
(2,14.8) +- (0.1,0.1)
(3,13.2) +- (0.2,0.2) };
\end{axis}
\end{tikzpicture}
\caption{test}
\end{figure}
\end{document}[/code]