Function Repository Resource:

# DirectionParametricPlot

Create a parametric plot of a curve in the plane with direction indicated by arrowheads and color

Contributed by: Dennis M Schneider
 ResourceFunction["DirectionParametricPlot"][{fx,fy},{t,tmin,tmax}] generates a parametric plot of a curve {fx,fy} whose x- and y-coordinates fx and fy are functions of t and with the direction of the curve indicated by color and arrowheads.

## Details and Options

The following options are supported:
 "ArrowNumber" 15 number of arrowheads to include in the plot "ArrowSize" Large size of the arrowheads ColorFunction Automatic specify the color function "DrawArrowheads" True whether to include the arrowheads in the plot PlotStyle Automatic style to be applied to the curve

## Examples

### Basic Examples (1)

A curve with direction indicated by color and arrowheads:

 In[1]:=
 Out[1]=

### Options (11)

#### ArrowSize (2)

The option "ArrowSize"1 corresponds (roughly) to the default "ArrowSize"Large:

 In[2]:=
 Out[2]=

The same curve with smaller arrowheads:

 In[3]:=
 Out[3]=

#### ArrowNumber (2)

 In[4]:=
 Out[4]=

Suppress the arrowheads by setting "ArrowNumber" to zero:

 In[5]:=
 Out[5]=

 In[6]:=
 Out[6]=

#### PlotStyle (4)

Setting PlotStyle to a color plots the curve in that color:

 In[7]:=
 Out[7]=

Plot two curves with a different style as well as a different size arrowhead for each curve:

 In[8]:=
 Out[8]=

Other settings for PlotStyle will not affect the automatic coloring:

 In[9]:=
 Out[9]=

For multiple curves, if just one style is specified, it is applied to both curves:

 In[10]:=
 Out[10]=

#### ColorFunction (1)

Change the color function:

 In[11]:=
 Out[11]=

#### PlotLegends (1)

Since PlotLegends depends on the color of the curve, they will not work unless ColorFunction is set to None or the specifications for PlotStyle contain a color:

 In[12]:=
 Out[12]=
 In[13]:=
 Out[13]=

### Properties and Relations (2)

Without DirectionParametricPlot, it is difficult to tell how the curve is traced out:

 In[14]:=
 Out[14]=

Using DirectionParametricPlot, it is easy to see how the curve is traced out:

 In[15]:=
 Out[15]=

## Publisher

Dennis M Schneider

## Version History

• 1.0.0 – 13 September 2019