pls.parseopts( args, pls.PL_PARSE_FULL | pls.PL_PARSE_NOPROGRAM );
pls.parseopts( args, PLStream.PL_PARSE_FULL | PLStream.PL_PARSE_NOPROGRAM );
   public x18( String[] args )     {	NumberFormat nf = NumberFormat.getNumberInstance();		int i, j, k;	double r;        // Parse and process command line arguments.	pls.parseopts( args, pls.PL_PARSE_FULL | pls.PL_PARSE_NOPROGRAM );	// Initialize plplot.	pls.init();	for( k=0; k < 4; k++ )	  test_poly(k);	double[] x = new double[NPTS];	double[] y = new double[NPTS];	double[] z = new double[NPTS];	// From the mind of a sick and twisted physicist...	for (i = 0; i < NPTS; i++) {	   z[i] = -1. + 2. * i / NPTS;	   // Pick one ...	   // r    = 1. - ( (double) i / (double) NPTS );	   r = z[i];	   x[i] = r * Math.cos( 2. * Math.PI * 6. * i / NPTS );	   y[i] = r * Math.sin( 2. * Math.PI * 6. * i / NPTS );	}	for (k = 0; k < 4; k++) {	   pls.adv(0);	   pls.vpor(0.0, 1.0, 0.0, 0.9);	   pls.wind(-1.0, 1.0, -0.9, 1.1);	   pls.col0(1);	   pls.w3d(1.0, 1.0, 1.0, -1.0, 1.0, -1.0, 1.0, -1.0, 1.0, alt[k], az[k]);	   pls.box3("bnstu", "x axis", 0.0, 0,		    "bnstu", "y axis", 0.0, 0,		    "bcdmnstuv", "z axis", 0.0, 0);	   	   pls.col0(2);	   	   if (opt[k]>0)	     pls.line3( x, y, z );	   else	     pls.poin3( x, y, z, 1 );	   	   pls.col0(3);	   String title =  "#frPLplot Example 18 - Alt=" + 	     nf.format((int) alt[k]) +	     ", Az=" + 	     nf.format((int) az[k]);	   pls.mtex("t", 1.0, 0.5, 0.5, title);	}		pls.end();     }