3

ラテックスのヘルプを探しています。私はここに新しいので、残念ながらまだ写真を投稿することはできません。

軸 (x と y) のラベルが付いた tikzpicture プロットがあります。ここで、x 軸の下に矢印を追加して、その後の処理の方向を示したいと思います。さらに、y 軸ラベルの左に上向きの矢印を付けたいと思います。この矢印には、「Fe の相対的増加」という 2 番目のラベルが必要です。

\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}
4

1 に答える 1

0

以下のコードは、そのような矢印を配置するための 2 つの手法を示しています。両方の開始点はname=MyAxisaxisオプションに追加することです。これにより、 as のアンカー ポイントをaxis法線で参照できるようになりますnode。Aには、軸の説明の外側にあるpgfplots axisなどのアンカーもあり、軸の角にあります。outer north eastnorth east

ここに画像の説明を入力

\documentclass[border=5mm]{standalone}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
    name=MyAxis,
    %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}
\draw [-latex] ([yshift=-2ex]MyAxis.outer south west) --node[below]{Direction of subsequential treatments} ([yshift=-2ex]MyAxis.outer south east);
\draw [-latex] (MyAxis.outer south west) ++(-2ex,0) coordinate(start) --node[sloped,above] {relative increase in Fe} (start |- MyAxis.outer north west);
\end{tikzpicture}
\end{document}
于 2015-07-31T07:06:50.100 に答える