PgfPlot:轴箭头与矢量箭头

PgfPlot:轴箭头与矢量箭头

我注意到轴上的箭头与绘制矢量时绘制的箭头不同:

\documentclass{article}
\usepackage{pgfplots}\pgfplotsset{compat=1.7}


\begin{document}

\begin{tikzpicture}
    \begin{axis}[
            domain=0:1, range=0:1,
            axis lines=none,
          ]   
          \addplot [->] plot coordinates {(0,0) (0,1)}; %% make longer later axis
          \addplot [->] plot coordinates {(0,0) (1,0)}; %% make longer later axis
        \end{axis}
\end{tikzpicture}

\begin{tikzpicture}
    \begin{axis}[
            domain=0:1, range=0:1,
            axis lines =left,
            ticks=none,
          ]          
        \end{axis}
\end{tikzpicture}

\end{document}

如何使所有箭头看起来像轴箭头?谢谢!

答案1

您可以在序言中使用以下方式全局设置箭头

\tikzset{>=stealth}

享受精美的轻松定制tikz:)

相关内容