|
From: <and...@us...> - 2013-11-05 14:10:31
|
Revision: 12654
http://sourceforge.net/p/plplot/code/12654
Author: andrewross
Date: 2013-11-05 14:10:28 +0000 (Tue, 05 Nov 2013)
Log Message:
-----------
Update example 22 to include calls to plpath with a global transformation since this function is not used in any of the other examples.
Modified Paths:
--------------
trunk/examples/c/x22c.c
Modified: trunk/examples/c/x22c.c
===================================================================
--- trunk/examples/c/x22c.c 2013-11-05 13:48:33 UTC (rev 12653)
+++ trunk/examples/c/x22c.c 2013-11-05 14:10:28 UTC (rev 12654)
@@ -201,6 +201,7 @@
const int nx = 20;
const int ny = 20;
const int nc = 11;
+ const int nseg = 20;
PLFLT clev[nc];
dx = 1.0;
@@ -248,6 +249,9 @@
clev, nc, 0, 1, 1.0, plfill, 1, NULL, NULL);
plvect( (const PLFLT * const *) u, (const PLFLT * const *) v, nx, ny,
-0.5, pltr2, (void *) &cgrid2 );
+ // Plot edges using plpath (which accounts for coordinate transformation) rather than plline
+ plpath(nseg,xmin,ymax,xmax,ymax);
+ plpath(nseg,xmin,ymin,xmax,ymin);
plcol0( 1 );
plFree2dGrid( cgrid2.xg, nx, ny );
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|