From: <and...@us...> - 2013-11-21 22:52:41
|
Revision: 12734 http://sourceforge.net/p/plplot/code/12734 Author: andrewross Date: 2013-11-21 22:52:38 +0000 (Thu, 21 Nov 2013) Log Message: ----------- Further tweaks to example 22 to make the arrows larger (and easier to see). This highlights the difference between filled and unfilled arrows. Also demonstrate use of NULL arguments to plsvect to reset arrow style to default. Modified Paths: -------------- trunk/examples/c/x22c.c Modified: trunk/examples/c/x22c.c =================================================================== --- trunk/examples/c/x22c.c 2013-11-21 22:19:11 UTC (rev 12733) +++ trunk/examples/c/x22c.c 2013-11-21 22:52:38 UTC (rev 12734) @@ -31,10 +31,10 @@ void f2mnmx( PLFLT **f, PLINT nx, PLINT ny, PLFLT *fnmin, PLFLT *fnmax ); // Pairs of points making the line segments used to plot the user defined arrow -static PLFLT arrow_x[6] = { -0.5, 0.5, 0.3, 0.5, 0.3, 0.5 }; -static PLFLT arrow_y[6] = { 0.0, 0.0, 0.2, 0.0, -0.2, 0.0 }; -static PLFLT arrow2_x[6] = { -0.5, 0.3, 0.3, 0.5, 0.3, 0.3 }; -static PLFLT arrow2_y[6] = { 0.0, 0.0, 0.2, 0.0, -0.2, 0.0 }; +static PLFLT arrow_x[6] = { -1.0, 1.0, 0.6, 1.0, 0.6, 1.0 }; +static PLFLT arrow_y[6] = { 0.0, 0.0, 0.4, 0.0, -0.4, 0.0 }; +static PLFLT arrow2_x[6] = { -1.0, 0.6, 0.6, 1.0, 0.6, 0.6 }; +static PLFLT arrow2_y[6] = { 0.0, 0.0, 0.4, 0.0, -0.4, 0.0 }; //-------------------------------------------------------------------------- // main @@ -434,6 +434,10 @@ constriction2(); + // Reset arrow style to the default by passing two + // NULL arrays + plsvect( NULL, NULL, 0, 0); + potential(); plend(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |