Arrow
This feature is not supported on the Wolfram Cloud.

Arrow[{pt1,pt2}]
is a graphics primitive that represents an arrow from to .

Arrow[{pt1,pt2},s]
represents an arrow with its ends set back from and by a distance s.

Arrow[{pt1,pt2},{s1,s2}]
sets back by from and from .

Arrow[curve,]
represents an arrow following the specified curve.

DetailsDetails

  • Arrow can be used in both Graphics and Graphics3D (two- and three-dimensional graphics).
  • The following curve specifications can be used in Graphics:
  • Line[]piecewise line segments
    BezierCurve[]composite Bezier curve
    BSplineCurve[]B-spline curve
    JoinedCurve[]joined curve object
  • The following curve specifications can be used in Graphics3D:
  • Line[]piecewise line segments
    BezierCurve[]composite Bezier curve
    BSplineCurve[]B-spline curve
    Tube[]tubed curve object
  • Arrow[Line[]] is equivalent to Arrow[]. Arrow[Tube[]] yields a 3D arrow based on a tube.
  • Arrow[{pt1,pt2,}] represents an arrow whose shaft passes through the sequence of points .
  • The positions of points can be specified either in ordinary coordinates as , or in scaled coordinates as Scaled[{x,y}] or using ImageScaled or Offset. »
  • The shaft of the arrow consists of a sequence of straight segments joining the specified points.
  • Arrow[{pt1,pt2}] is drawn by default with its tail at and its head at .
  • The form, orientation, and position of arrowheads can be specified by an Arrowheads directive. »
  • Graphics directives such as RGBColor or Thickness apply to both the shaft and arrowhead elements of an arrow. »
  • You can prevent directives from applying to an arrowhead by including explicit directives within the graphic used to specify the arrowhead.
  • In Arrow[{pt1,pt2},s] the setback distance s is measured in the ordinary coordinate system of the whole graphic, so that the arrow will just touch Disk[pti,s]. »
  • If the whole graphic does not have AspectRatio->Automatic, then a specified arrow setback may correspond to different distances in different directions in the graphic.

ExamplesExamplesopen allclose all

Basic Examples  (6)Basic Examples  (6)

A 2D arrow primitive:

In[1]:=
Click for copyable input
Out[1]=

A 3D arrow primitive:

In[1]:=
Click for copyable input
Out[1]=

A full 3D arrow primitive using tubes:

In[1]:=
Click for copyable input
Out[1]=

Curved arrows:

In[1]:=
Click for copyable input
Out[1]=

Double-headed arrows:

In[1]:=
Click for copyable input
Out[1]=

Differently styled 2D arrows:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
Introduced in 2007
(6.0)
| Updated in 2010
(8.0)