I am looking for a help with Latex. I'm new here so unfortunately I'm not allowed to post pictures yet.
I have a tikzpicture plot with labeled axes (x and y). Now I would like to add an arrow below the x-axis to indicate the direction of the subsequential treatments. In addition I would like to have an arrow left of the y-axis label pointing upwards. This arrow should have a second label saying "relative increase in Fe".
\begin{figure}[htbp]
\centering
\begin{tikzpicture}[scale=1]
\begin{axis}[
%legend style={at={(1.05,0.05)}, %gibt Ort für Legende an
%anchor=south west},
%axis x line=bottom, % erzeugt x-Achse mit Pfeil
%axis y line=left, %
width=15.5cm,
height=10cm,
%scaled ticks=false,
%ymin=0,
xmin=-0.5,
xmax=5,
ymin=0,
ymax=5,
xtick={0,1,2,3,4},
xticklabels={Fe2O3,1,2,3,4},
bar width=50pt,
%ytick={},
%yticklabels={},
%use un%%ts,
%x unit=-,
%x unit prefix=,
%y unit=\frac{m}{s},
%y unit prefix=,
xlabel=Subsequential Treatments over Time ,
ylabel=Auger Peak to Peak Height Ratio Fe:O,
x tick label style= {rotate=90,anchor=east},
ybar stacked]
\addplot [draw=white, very thin]
coordinates {(0,1) (1,1) (2,3) (3,2) (4,1.5)};
\addplot [draw= blue, fill=blue]
coordinates {(0,1) (1,1) (2,3) (3,2) (4,1.5)};
%\node at (100,1) [orange!50!yellow]{\small{ZnO-h}};
\end{axis}
\end{tikzpicture}
\caption[Auger Spectrum of HOPG]{Auger Peak to Peak Height Ratios of Fe:O at an primary electron beam of \unit{2.0}{keV}.}
\label{Auger_ratio_histogram_}
\end{figure}
The code below illustrates two techniques for placing such arrows. The starting point of both is to add
name=MyAxis
to theaxis
options, which allows you to refer to the anchor points of theaxis
as with a normalnode
. Apgfplots
axis
also has anchors such asouter north east
, which lies outside the axis descriptions, whilenorth east
lies on the corner of the axes.