ich habe eine Grafik erstellt, mit jeweils 2 Balken über einem symbolischem x Wert.
Nun möchte ich einen dritten Balken jeweils hinzufügen. Der Balken soll allerdings transparent sein und über dem zweiten Balken liegen.
Am Besten versteht man es wenn man sich das mal anschaut:
\documentclass[a4paper,12pt,twoside]{report} \usepackage[T1]{fontenc} \usepackage[ngerman]{babel} \usepackage{lmodern} \usepackage{tikz} \usepackage{pgfplots, pgfplotstable} \begin{document} \begin{figure}[htb] \begin{tikzpicture} \begin{axis}[ height=7.4cm, width=\linewidth, enlargelimits=0.05, enlarge x limits={abs=30pt}, legend style={ at={(0.85,0.90)}, anchor=north, legend columns=-1 }, ymin=0, ymax=30, x tick label style={/pgf/number format/1000 sep=}, x tick label style={rotate=45,anchor=east}, symbolic x coords={SD Links,SD Rechts,MD Links,MD Rechts,Fond,Fussraum,Defrost}, xtick={SD Links,SD Rechts,MD Links,MD Rechts,Fond,Fussraum,Defrost}, ylabel={Volumenstrom in \%}, ybar, bar width=16pt, ytick={0,5,10,...,30}, ymajorgrids, %xminorgrids, %minor x tick num=1, %subtickwidth=0pt, 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 { %%Messung (SD Links,16.83) (SD Rechts,18.01) (MD Links,20.08) (MD Rechts,18.77) (Fond,26.11) (Fussraum,0) (Defrost,0) }; \addplot coordinates { %%Prozentual (SD Links,17.90346159) (SD Rechts,17.9098709) (MD Links,18.50677835) (MD Rechts,17.30987056) (Fond,28.37001861) (Fussraum,0) (Defrost,0) }; \legend{Messung, CFD} \end{axis} \end{tikzpicture} \caption{Prozentuale Luftverteilung an den Auslässen für Warmluftklappe 0 \% bezogen auf den Gesamtvolumenstrom} \label{fig:Luftverteilung1} \end{figure}
Wie macht man sowas?
VIelen Dank!