绘制空的大箭头

绘制空的大箭头

我怎样才能绘制这样的空大箭头(例如从(0,0)到(2,-2))?

在此处输入图片描述

我能够绘制的唯一箭头是简单的垂直/水平细箭头:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{pgfplots}
\pgfplotsset{width=10cm,compat=1.15}

\begin{document}

\begin{center}
    \begin{tikzpicture}

        \draw[->,line width=1pt, rotate=45] (0,0)-|(2,-2);

    \end{tikzpicture}
\end{center}

\end{document}

非常感谢您的参与。

答案1

像这样?

在此处输入图片描述

它被画成节点形状......

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{pgfplots}
\pgfplotsset{width=10cm,compat=1.15}
\usetikzlibrary{shapes.arrows}

\begin{document}

\begin{center}
    \begin{tikzpicture}
\draw[blue!30] (0,0) grid[step=1] + (8,-5);
        \node[draw, single arrow,
              minimum height=33mm, minimum width=8mm,
              single arrow head extend=2mm,
              anchor=west, rotate=-60] at (4,-1) {};

    \end{tikzpicture}
\end{center}

\end{document}

答案2

在此处输入图片描述

\documentclass{article}

\usepackage{tikz}
\usetikzlibrary{shapes.arrows}
\begin{document}
    \begin{tikzpicture}[every node/.style={single arrow, draw=none, rotate=0}]
    %\draw[step=0.5,very thin,black!20] (-2,-2) grid (2,2);
    \draw[help lines,step=.2] (-2,-2) grid (7,4);
\draw[help lines,line width=.6pt,step=1] (-2,-2) grid (7,4);
\foreach \x in {-2,-1,0,1,2,3,4,5,6,7}
 \node[anchor=north] at (\x,-2) {\x};
\foreach \y in {-2,-1,0,1,2,3,4}
 \node[anchor=east] at (-2,\y) {\y};
    \node [draw=black] {\phantom {hdhdhhhdhdhdh}};
    \end{tikzpicture}
\end{document}

相关内容