From: <ai...@us...> - 2008-09-30 17:35:40
|
Revision: 8838 http://plplot.svn.sourceforge.net/plplot/?rev=8838&view=rev Author: airwin Date: 2008-09-30 17:35:26 +0000 (Tue, 30 Sep 2008) Log Message: ----------- Remove many of the pladv(0) commands that have been sprinkled around this example like confetti. plenv calls pladv(0) so the result of these extraneous pladv(0) commands was empty pages. To understand the page handling now in this example, note that pladv(0) (or plenv) is called before each page just like in the other examples. I have checked this new page handling system works fine for -dev xwin (with and without selecting a subset of the Lena image to plot using the mouse) and -dev psc without any of the empty pages that occurred before. I have also checked this change works fine for the example options -nosombrero, -nointeractive, -dbg, and -save filename. ToDo. Propagate this change to the rest of the examples. Modified Paths: -------------- trunk/examples/c/x20c.c Modified: trunk/examples/c/x20c.c =================================================================== --- trunk/examples/c/x20c.c 2008-09-29 23:10:29 UTC (rev 8837) +++ trunk/examples/c/x20c.c 2008-09-30 17:35:26 UTC (rev 8838) @@ -138,7 +138,6 @@ 1., (PLFLT) XDIM, 1., (PLFLT) YDIM, 0., 0., 1., (PLFLT) XDIM, 1., (PLFLT) YDIM); - pladv(0); } /* sombrero-like demo */ @@ -168,7 +167,6 @@ if (f_name) save_plot(f_name); - pladv(0); } plFree2dGrid(z, XDIM, YDIM); @@ -237,12 +235,10 @@ plimage(img_f, width, height, 1., width, 1., height, 0., 0., xi, xe, ye, yi); plspause(1); - pladv(0); /* zoom in selection */ plenv(xi, xe, ye, yi, 1, -1); plimage(img_f, width, height, 1., width, 1., height, 0., 0., xi, xe, ye, yi); - pladv(0); } /* Base the dynamic range on the image contents. */ @@ -285,7 +281,6 @@ } plimagefr(img_f, width, height, 0., width, 0., height, 0., 0., img_min, img_max, pltr2, &cgrid2); - pladv(0); plFree2dGrid(cgrid2.xg, width+1, height+1); plFree2dGrid(cgrid2.yg, width+1, height+1); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |