plarrow
plot an arrow
parameter | type | units | description |
---|---|---|---|
dx,dy | float | uu | displacement of the arrow |
dptr | float | mm | length of the pointer |
angs | float | degr | small angle of the pointer |
angl | float | degr | large angle or the pointer |
both | int | -- | if TRUE, both ends will have a pointer |
open | int | -- | if TRUE, the pointer is open |
filled | int | -- | if TRUE, the pointer is filled |
perp | int | -- | if TRUE, text in the shaft is perpendicular to it |
text | char* | -- | text in the middle of the shaft |
returns: | void |
Description
plarrow plots an arrow, starting at the current position, extending to dx,dy. If dptr=0, the current symbol height will be used. Filling of the pointer is performed inside the polygon 12341 (see the example below). An open pointer misses lines 1--2 and 4--1.Examples
plinit PS plarrow A4 30 30 "" "" # set some constants dx=130 dy=40 dptr=50 angs=20 angl=60 # plot the big arrow plfcolor 0.8 0.8 1 plset PENDIA .5 plarrow dx dy dptr 20 60 0 0 1 0 text # plot instructive arrows plset PENDIA .1 angs=10 angl=20 dptr=8 plarrow dx 0 dptr angs angl 0 0 1 0 dx plarrow 0 dy dptr angs angl 0 0 1 1 dy plot 88 7 UP plarrow 48 18 dptr angs angl 1 0 1 0 dptr # mark some points in the big arrow plot 84 33 UP plformat -.5 -.5 angl plot 117 40 UP plformat -.5 -.5 angs plot 93 31 UP plformat 0 0 1 plot 75 43 UP plformat 0 0 2 plot dx+2 dy UP plformat 0 0 3 plot 86 9 UP plformat 0 0 4 # frame around all plframe 5 3