|
From: <and...@us...> - 2011-11-24 20:09:22
|
Revision: 12037
http://plplot.svn.sourceforge.net/plplot/?rev=12037&view=rev
Author: andrewross
Date: 2011-11-24 20:09:15 +0000 (Thu, 24 Nov 2011)
Log Message:
-----------
Fix a couple of minor issues in the C++ examples where the C API was used rather than the C++ wrapper class.
Modified Paths:
--------------
trunk/examples/c++/x17.cc
trunk/examples/c++/x20.cc
trunk/examples/c++/x21.cc
trunk/examples/c++/x30.cc
Modified: trunk/examples/c++/x17.cc
===================================================================
--- trunk/examples/c++/x17.cc 2011-11-24 19:20:27 UTC (rev 12036)
+++ trunk/examples/c++/x17.cc 2011-11-24 20:09:15 UTC (rev 12037)
@@ -163,7 +163,7 @@
# endif
#endif
t = (double) n * dt;
- noise = plrandd() - 0.5;
+ noise = pls->randd() - 0.5;
y1 = y1 + noise;
y2 = sin( t * M_PI / 18. );
y3 = y2 * noise;
Modified: trunk/examples/c++/x20.cc
===================================================================
--- trunk/examples/c++/x20.cc 2011-11-24 19:20:27 UTC (rev 12036)
+++ trunk/examples/c++/x20.cc 2011-11-24 20:09:15 UTC (rev 12037)
@@ -335,7 +335,7 @@
}
}
- pls->imagefr( img_f, width, height, 0., width, 0., height, 0., 0., img_min, img_max, pltr2, &cgrid2 );
+ pls->imagefr( img_f, width, height, 0., width, 0., height, 0., 0., img_min, img_max, pls->tr2, &cgrid2 );
pls->Free2dGrid( cgrid2.xg, width + 1, height + 1 );
pls->Free2dGrid( cgrid2.yg, width + 1, height + 1 );
Modified: trunk/examples/c++/x21.cc
===================================================================
--- trunk/examples/c++/x21.cc 2011-11-24 19:20:27 UTC (rev 12036)
+++ trunk/examples/c++/x21.cc 2011-11-24 20:09:15 UTC (rev 12037)
@@ -300,7 +300,7 @@
pls->col0( 15 );
pls->lab( "X", "Y", title[alg - 1] );
pls->shades( zg, xp, yp, NULL, xm, xM, ym, yM,
- clev, nl, 1, 0, 1, plfill, true, NULL, NULL );
+ clev, nl, 1, 0, 1, pls->fill, true, NULL, NULL );
pls->col0( 2 );
}
else
Modified: trunk/examples/c++/x30.cc
===================================================================
--- trunk/examples/c++/x30.cc 2011-11-24 19:20:27 UTC (rev 12036)
+++ trunk/examples/c++/x30.cc 2011-11-24 20:09:15 UTC (rev 12037)
@@ -177,7 +177,7 @@
py[2] = 1.;
py[3] = 1.;
- plgradient( 4, px, py, 90. );
+ pls->gradient( 4, px, py, 90. );
delete pls;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|