From: <ai...@us...> - 2010-12-26 23:10:40
|
Revision: 11389 http://plplot.svn.sourceforge.net/plplot/?rev=11389&view=rev Author: airwin Date: 2010-12-26 23:10:33 +0000 (Sun, 26 Dec 2010) Log Message: ----------- Remove default xwin device, which (a) is not necessarily the best default, and (b) that was not taken as the default by all x??c.m examples in any case. Also remove call to plplot_stub if that hadn't been called already since that normally unnecessary call was not done uniformly for all x??cm examples in any case. Modified Paths: -------------- trunk/examples/octave/x01c.m trunk/examples/octave/x02c.m trunk/examples/octave/x03c.m trunk/examples/octave/x04c.m trunk/examples/octave/x05c.m trunk/examples/octave/x06c.m trunk/examples/octave/x07c.m trunk/examples/octave/x08c.m trunk/examples/octave/x09c.m trunk/examples/octave/x10c.m trunk/examples/octave/x11c.m trunk/examples/octave/x12c.m trunk/examples/octave/x13c.m trunk/examples/octave/x14c.m trunk/examples/octave/x15c.m trunk/examples/octave/x16c.m trunk/examples/octave/x17c.m trunk/examples/octave/x18c.m trunk/examples/octave/x22c.m trunk/examples/octave/x27c.m trunk/examples/octave/x31c.m Modified: trunk/examples/octave/x01c.m =================================================================== --- trunk/examples/octave/x01c.m 2010-12-26 08:41:18 UTC (rev 11388) +++ trunk/examples/octave/x01c.m 2010-12-26 23:10:33 UTC (rev 11389) @@ -24,14 +24,6 @@ strm = stdout; endif - if (!exist("plinit")) - plplot_stub - endif - - if(isempty(sprintf("%s",plgdev'))) - plsdev("xwin"); - endif - ## plplot initialization */ ## Parse and process command line arguments */ Modified: trunk/examples/octave/x02c.m =================================================================== --- trunk/examples/octave/x02c.m 2010-12-26 08:41:18 UTC (rev 11388) +++ trunk/examples/octave/x02c.m 2010-12-26 23:10:33 UTC (rev 11389) @@ -20,14 +20,6 @@ function ix02c ## Initialize plplot */ - if (!exist("plinit")) - plplot_stub - endif - - if(isempty(sprintf("%s",plgdev'))) - plsdev("xwin"); - endif - plinit(); ## Parse and process command line arguments */ Modified: trunk/examples/octave/x03c.m =================================================================== --- trunk/examples/octave/x03c.m 2010-12-26 08:41:18 UTC (rev 11388) +++ trunk/examples/octave/x03c.m 2010-12-26 23:10:33 UTC (rev 11389) @@ -19,14 +19,6 @@ function x03c ## Initialize plplot */ - if (!exist("plinit")) - plplot_stub - endif - - if(isempty(sprintf("%s",plgdev'))) - plsdev("xwin"); - endif - ## Set orientation to portrait - note not all device drivers ## support this, in particular most interactive drivers do not */ plsori(1); Modified: trunk/examples/octave/x04c.m =================================================================== --- trunk/examples/octave/x04c.m 2010-12-26 08:41:18 UTC (rev 11388) +++ trunk/examples/octave/x04c.m 2010-12-26 23:10:33 UTC (rev 11389) @@ -25,14 +25,6 @@ ## (void) plparseopts(&argc, argv, PL_PARSE_FULL); ## Initialize plplot */ - if (!exist("plinit")) - plplot_stub - endif - - if(isempty(sprintf("%s",plgdev'))) - plsdev("xwin"); - endif - plinit(); plfont(2); Modified: trunk/examples/octave/x05c.m =================================================================== --- trunk/examples/octave/x05c.m 2010-12-26 08:41:18 UTC (rev 11388) +++ trunk/examples/octave/x05c.m 2010-12-26 23:10:33 UTC (rev 11389) @@ -18,14 +18,6 @@ function x05c ## Initialize plplot */ - if (!exist("plinit")) - plplot_stub - endif - - if(isempty(sprintf("%s",plgdev'))) - plsdev("xwin"); - endif - plinit; NPTS=2047; Modified: trunk/examples/octave/x06c.m =================================================================== --- trunk/examples/octave/x06c.m 2010-12-26 08:41:18 UTC (rev 11388) +++ trunk/examples/octave/x06c.m 2010-12-26 23:10:33 UTC (rev 11389) @@ -17,15 +17,6 @@ function x06c - ## Initialize plplot */ - if (!exist("plinit")) - plplot_stub - endif - - if(isempty(sprintf("%s",plgdev'))) - plsdev("xwin"); - endif - ## Parse and process command line arguments */ ## (void) plparseopts(&argc, argv, PL_PARSE_FULL); Modified: trunk/examples/octave/x07c.m =================================================================== --- trunk/examples/octave/x07c.m 2010-12-26 08:41:18 UTC (rev 11388) +++ trunk/examples/octave/x07c.m 2010-12-26 23:10:33 UTC (rev 11389) @@ -17,14 +17,6 @@ function x07c - if (!exist("plinit")) - plplot_stub - endif - - if(isempty(sprintf("%s",plgdev'))) - plsdev("xwin"); - endif - ## Parse and process command line arguments */ ## (void) plparseopts(&argc, argv, PL_PARSE_FULL); Modified: trunk/examples/octave/x08c.m =================================================================== --- trunk/examples/octave/x08c.m 2010-12-26 08:41:18 UTC (rev 11388) +++ trunk/examples/octave/x08c.m 2010-12-26 23:10:33 UTC (rev 11389) @@ -36,14 +36,6 @@ function ix08c - if (!exist("plinit")) - plplot_stub - endif - - if(isempty(sprintf("%s",plgdev'))) - plsdev("xwin"); - endif - XPTS=35; ## Data points in x YPTS=46; ## Datat points in y Modified: trunk/examples/octave/x09c.m =================================================================== --- trunk/examples/octave/x09c.m 2010-12-26 08:41:18 UTC (rev 11388) +++ trunk/examples/octave/x09c.m 2010-12-26 23:10:33 UTC (rev 11389) @@ -183,14 +183,6 @@ function ix09c - if (!exist("plinit")) - plplot_stub - endif - - if(isempty(sprintf("%s",plgdev'))) - plsdev("xwin"); - endif - global XPTS global YPTS global tr Modified: trunk/examples/octave/x10c.m =================================================================== --- trunk/examples/octave/x10c.m 2010-12-26 08:41:18 UTC (rev 11388) +++ trunk/examples/octave/x10c.m 2010-12-26 23:10:33 UTC (rev 11389) @@ -18,14 +18,6 @@ function x10c - if (!exist("plinit")) - plplot_stub - endif - - if(isempty(sprintf("%s",plgdev'))) - plsdev("xwin"); - endif - ## Parse and process command line arguments */ ## (void) plparseopts(&argc, argv, PL_PARSE_FULL); Modified: trunk/examples/octave/x11c.m =================================================================== --- trunk/examples/octave/x11c.m 2010-12-26 08:41:18 UTC (rev 11388) +++ trunk/examples/octave/x11c.m 2010-12-26 23:10:33 UTC (rev 11389) @@ -31,14 +31,6 @@ function ix11c - if (!exist("plinit")) - plplot_stub - endif - - if(isempty(sprintf("%s",plgdev'))) - plsdev("xwin"); - endif - XPTS = 35; ## Data points in x */ YPTS = 46; ## Datat points in y */ Modified: trunk/examples/octave/x12c.m =================================================================== --- trunk/examples/octave/x12c.m 2010-12-26 08:41:18 UTC (rev 11388) +++ trunk/examples/octave/x12c.m 2010-12-26 23:10:33 UTC (rev 11389) @@ -21,14 +21,6 @@ function ix12c - if (!exist("plinit")) - plplot_stub - endif - - if(isempty(sprintf("%s",plgdev'))) - plsdev("xwin"); - endif - ## Parse and process command line arguments */ ## (void) plparseopts(&argc, argv, PL_PARSE_FULL); Modified: trunk/examples/octave/x13c.m =================================================================== --- trunk/examples/octave/x13c.m 2010-12-26 08:41:18 UTC (rev 11388) +++ trunk/examples/octave/x13c.m 2010-12-26 23:10:33 UTC (rev 11389) @@ -17,14 +17,6 @@ function x13c - if (!exist("plinit")) - plplot_stub - endif - - if(isempty(sprintf("%s",plgdev'))) - plsdev("xwin"); - endif - text =[ "Maurice", "Geoffrey", Modified: trunk/examples/octave/x14c.m =================================================================== --- trunk/examples/octave/x14c.m 2010-12-26 08:41:18 UTC (rev 11388) +++ trunk/examples/octave/x14c.m 2010-12-26 23:10:33 UTC (rev 11389) @@ -30,10 +30,6 @@ strm = stdout; endif - if (!exist("plinit")) - plplot_stub - endif - xleng0 = 400; yleng0 = 300; xoff0 = 200; yoff0 = 200; xleng1 = 400; yleng1 = 300; xoff1 = 500; yoff1 = 500; Modified: trunk/examples/octave/x15c.m =================================================================== --- trunk/examples/octave/x15c.m 2010-12-26 08:41:18 UTC (rev 11388) +++ trunk/examples/octave/x15c.m 2010-12-26 23:10:33 UTC (rev 11389) @@ -21,14 +21,6 @@ function ix15c - if (!exist("plinit")) - plplot_stub - endif - - if(isempty(sprintf("%s",plgdev'))) - plsdev("xwin"); - endif - XPTS= 35; ## Data points in x */ YPTS= 46; ## Datat points in y */ global tr = [2/(XPTS-1); 0.0; -1.0; 0.0; 2/(YPTS-1); -1.0]; Modified: trunk/examples/octave/x16c.m =================================================================== --- trunk/examples/octave/x16c.m 2010-12-26 08:41:18 UTC (rev 11388) +++ trunk/examples/octave/x16c.m 2010-12-26 23:10:33 UTC (rev 11389) @@ -31,14 +31,6 @@ function ix16c - if (!exist("plinit")) - plplot_stub - endif - - if(isempty(sprintf("%s",plgdev'))) - plsdev("xwin"); - endif - global tr; global nx; global ny; ## Fundamental settings. See notes[] for more info. Modified: trunk/examples/octave/x17c.m =================================================================== --- trunk/examples/octave/x17c.m 2010-12-26 08:41:18 UTC (rev 11388) +++ trunk/examples/octave/x17c.m 2010-12-26 23:10:33 UTC (rev 11389) @@ -16,14 +16,6 @@ function x17c - if (!exist("plinit")) - plplot_stub - endif - - if(isempty(sprintf("%s",plgdev'))) - plsdev("xwin"); - endif - nsteps = 1000; ## If db is used the plot is much more smooth. However, because of the Modified: trunk/examples/octave/x18c.m =================================================================== --- trunk/examples/octave/x18c.m 2010-12-26 08:41:18 UTC (rev 11388) +++ trunk/examples/octave/x18c.m 2010-12-26 23:10:33 UTC (rev 11389) @@ -24,14 +24,6 @@ function ix18c - if (!exist("plinit")) - plplot_stub - endif - - if(isempty(sprintf("%s",plgdev'))) - plsdev("xwin"); - endif - global alt; global az; global opt = [ 1, 0, 1, 0 ]; Modified: trunk/examples/octave/x22c.m =================================================================== --- trunk/examples/octave/x22c.m 2010-12-26 08:41:18 UTC (rev 11388) +++ trunk/examples/octave/x22c.m 2010-12-26 23:10:33 UTC (rev 11389) @@ -20,14 +20,6 @@ function ix22c - if (!exist("plinit")) - plplot_stub - endif - - if(isempty(sprintf("%s",plgdev'))) - plsdev("xwin"); - endif - ## Parse and process command line arguments */ ## plparseopts(&argc, argv, PL_PARSE_FULL); Modified: trunk/examples/octave/x27c.m =================================================================== --- trunk/examples/octave/x27c.m 2010-12-26 08:41:18 UTC (rev 11388) +++ trunk/examples/octave/x27c.m 2010-12-26 23:10:33 UTC (rev 11389) @@ -46,14 +46,6 @@ 20.0, 13.0, 20.0, 20.0; 20.0,-13.0, 20.0, 20.0]; - if (!exist("plinit")) - plplot_stub - endif - - if(isempty(sprintf("%s",plgdev'))) - plsdev("xwin"); - endif - ## Parse and process command line arguments ## (void) plparseopts(&argc, argv, PL_PARSE_FULL); Modified: trunk/examples/octave/x31c.m =================================================================== --- trunk/examples/octave/x31c.m 2010-12-26 08:41:18 UTC (rev 11388) +++ trunk/examples/octave/x31c.m 2010-12-26 23:10:33 UTC (rev 11389) @@ -31,14 +31,6 @@ strm = stdout; endif - if (!exist("plinit")) - plplot_stub - endif - - if(isempty(sprintf("%s",plgdev'))) - plsdev("xwin"); - endif - PL_NOTSET = -42.0; ## Clear status flag to begin with This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |