<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:Arial;
color:windowtext;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>In case anyone is interested in having solid/filled
arrowheads for ‘gxout vector’, here’s the source code I came
up with:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>//modify gagx.c source file<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>//@ around line 3265<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>//replace entire gaarrw function, and add/modify the static ‘a150’/’a165’
variables beforehand<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>static gadouble a150 = 150.0*3.141592654/180.0;<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>static gadouble a165 = 165.0*3.141592654/180.0;<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>void gaarrw (gadouble x, gadouble y, gadouble ang, gadouble
siz, gadouble asiz) {<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>gadouble xx,yy;<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=ES-MX style='font-size:
10.0pt;font-family:Arial'>gadouble xy[8];<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> if (siz<0.0001) {<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> gxmark (2, x, y, 0.01);<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font><font size=2 face=Arial><span
lang=ES-MX style='font-size:10.0pt;font-family:Arial'>return;<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=ES-MX style='font-size:
10.0pt;font-family:Arial'> }<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=ES-MX style='font-size:
10.0pt;font-family:Arial'> gxplot (x,y,3);<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=ES-MX style='font-size:
10.0pt;font-family:Arial'> xx = x+siz*cos(ang);<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=ES-MX style='font-size:
10.0pt;font-family:Arial'> yy = y+siz*sin(ang);<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=ES-MX style='font-size:
10.0pt;font-family:Arial'> </span></font><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>gxplot (xx,yy,2);<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> if (asiz==0.0) return;<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> if (asiz<0.0) asiz = -1.0*asiz*siz;<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=ES-MX style='font-size:
10.0pt;font-family:Arial'> <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=ES-MX style='font-size:
10.0pt;font-family:Arial'> //new filled arrowhead<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=ES-MX style='font-size:
10.0pt;font-family:Arial'> xy[0]=xx;<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=ES-MX style='font-size:
10.0pt;font-family:Arial'> xy[1]=yy;<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=ES-MX style='font-size:
10.0pt;font-family:Arial'> xy[2]=xx+asiz*cos(ang+a165);<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=ES-MX style='font-size:
10.0pt;font-family:Arial'> xy[3]=yy+asiz*sin(ang+a165);<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=ES-MX style='font-size:
10.0pt;font-family:Arial'> xy[4]=xx+asiz*cos(ang-a165);<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=ES-MX style='font-size:
10.0pt;font-family:Arial'> xy[5]=yy+asiz*sin(ang-a165);<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=ES-MX style='font-size:
10.0pt;font-family:Arial'> xy[6]=xy[0];<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=ES-MX style='font-size:
10.0pt;font-family:Arial'> xy[7]=xy[1];<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=ES-MX style='font-size:
10.0pt;font-family:Arial'> gxfill(xy,4);<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=ES-MX style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> //original non-filled arrowhead<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> //plot arrow head lines<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> //first plot one line, then move back to tip, then
plot second line<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> /*<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> gxplot
(xx+asiz*cos(ang+a150),yy+asiz*sin(ang+a150),2);<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> gxplot (xx,yy,3);<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> gxplot
(xx+asiz*cos(ang-a150),yy+asiz*sin(ang-a150),2);<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> */<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>}<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>…I tested this and it seems to work fine.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I changed the arrowhead angle to 165 degrees because the
arrowheads seemed too wide at 150, just my opinion…<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I guess ideally this function should have arguments for “isFilled”
and “arrowHeadAngle”, to allow the user to select standard/filled
arrowhead, and the angle used to determine the arrowhead’s spread.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>P.Romero<o:p></o:p></span></font></p>
</div>
</body>
</html>