On 2010-04-29 16:12-0700 Jerry wrote: > Alan, thanks for this info. Is it possible to briefly summarize the > changes that have been made to the C examples and API? I know I can > figure this out from slogging through SVN but it would be helpful to > have a guide as to what has changed recently. Or has this progress > already been recorded somewhere (besides the list)?
Hi Jerry: The best source is svn. Let's take example 6 which is an easy one. "svn log examples/c/x06c.c" shows the key revision was 10908. So do an svn diff with the revision just before that: svn diff -x -w --revision 10907 examples/c/x06c.c (where -x -w are important options which mean whitespace changes will be ignored by svn diff). The following results are obtained by that command: Index: examples/c/x06c.c =================================================================== --- examples/c/x06c.c (revision 10907) +++ examples/c/x06c.c (working copy) @@ -15,7 +15,7 @@ main( int argc, const char *argv[] ) { char text[10]; - int i, j, k; + int i, j, k, kind_font, font, maxfont; PLFLT x, y; /* Parse and process command line arguments */ @@ -26,6 +26,18 @@ plinit(); + for ( kind_font = 0; kind_font < 2; kind_font++ ) + { + plfontld( kind_font ); + if ( kind_font == 0 ) + maxfont = 1; + else + maxfont = 4; + + for ( font = 0; font < maxfont; font++ ) + { + plfont( font + 1 ); + pladv( 0 ); /* Set up viewport and window */ @@ -68,7 +80,12 @@ } } - plmtex( "t", 1.5, 0.5, 0.5, "PLplot Example 6 - plpoin symbols" ); + if ( kind_font == 0 ) + plmtex( "t", 1.5, 0.5, 0.5, "PLplot Example 6 - plpoin symbols (compact)" ); + else + plmtex( "t", 1.5, 0.5, 0.5, "PLplot Example 6 - plpoin symbols (extended)" ); + } + } plend(); exit( 0 ); } So those two extra loops should be a straightforward change to implement for all instances of example 6 for all our non-C languages. Example 7 changes should be similarly straightforward. Once 6 and 7 are knocked off the remaining differences will look much more tractable. Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); PLplot scientific plotting software package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ ------------------------------------------------------------------------------ _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel