From: <ai...@us...> - 2008-12-15 21:23:06
|
Revision: 9124 http://plplot.svn.sourceforge.net/plplot/?rev=9124&view=rev Author: airwin Date: 2008-12-15 21:23:03 +0000 (Mon, 15 Dec 2008) Log Message: ----------- Add prototype of example 31 for testing PLplot set/get functions. Modified Paths: -------------- trunk/examples/c/CMakeLists.txt trunk/examples/c/Makefile.examples.in trunk/plplot_test/test_c.sh.in Added Paths: ----------- trunk/examples/c/x31c.c Modified: trunk/examples/c/CMakeLists.txt =================================================================== --- trunk/examples/c/CMakeLists.txt 2008-12-15 20:53:24 UTC (rev 9123) +++ trunk/examples/c/CMakeLists.txt 2008-12-15 21:23:03 UTC (rev 9124) @@ -54,6 +54,7 @@ "28" "29" "30" + "31" ) if(BUILD_TEST) Modified: trunk/examples/c/Makefile.examples.in =================================================================== --- trunk/examples/c/Makefile.examples.in 2008-12-15 20:53:24 UTC (rev 9123) +++ trunk/examples/c/Makefile.examples.in 2008-12-15 21:23:03 UTC (rev 9124) @@ -63,6 +63,7 @@ x28c$(EXEEXT) \ x29c$(EXEEXT) \ x30c$(EXEEXT) \ + x31c$(EXEEXT) \ $(PLPLOTCANVAS_EXECUTABLES_list) all: $(EXECUTABLES_list) Added: trunk/examples/c/x31c.c =================================================================== --- trunk/examples/c/x31c.c (rev 0) +++ trunk/examples/c/x31c.c 2008-12-15 21:23:03 UTC (rev 9124) @@ -0,0 +1,38 @@ +/* $Id$ + + set/get tester +*/ + +#include "plcdemos.h" + +/*--------------------------------------------------------------------------*\ + * main + * + * Demonstrates absolute positioning of graphs on a page. + \*--------------------------------------------------------------------------*/ + +int +main(int argc, const char *argv[]) +{ + PLFLT xmin, xmax, ymin, ymax; + /* Parse and process command line arguments */ + + (void) plparseopts(&argc, argv, PL_PARSE_FULL); + + /* Initialize plplot */ + + plinit(); + + pladv(0); + plvpor(0.0, 1.0, 0.0, 1.0); + + plwind(0.2, 0.3, 0.4, 0.5); + plgvpw(&xmin, &xmax, &ymin, &ymax); + if (xmin != 0.2 || xmax != 0.3 || ymin != 0.4 || ymax != 0.5) { + fprintf(stderr, "%s\n", "plgvpi test failed"); + plend(); + exit(1); + } + plend(); + exit(0); +} Property changes on: trunk/examples/c/x31c.c ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Modified: trunk/plplot_test/test_c.sh.in =================================================================== --- trunk/plplot_test/test_c.sh.in 2008-12-15 20:53:24 UTC (rev 9123) +++ trunk/plplot_test/test_c.sh.in 2008-12-15 21:23:03 UTC (rev 9124) @@ -32,7 +32,7 @@ lang="c" export index lang for index in 01 02 03 04 05 06 07 08 09 10 11 12 13 15 16 18 19 20 \ - 21 22 23 24 25 26 27 28 29 30; do + 21 22 23 24 25 26 27 28 29 30 31; do if [ "$verbose_test" ]; then echo "x${index}${lang}" fi This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |