1 // Window positioning demo. 2 // 3 4 import plplot; 5 import std.string; 6 7 //-------------------------------------------------------------------------- 8 // main 9 // 10 // Demonstrates absolute positioning of graphs on a page. 11 //-------------------------------------------------------------------------- 12 int main( char[][] args ) 13 { 14 // Parse and process command line arguments 15 plparseopts( args, PL_PARSE_FULL ); 16 17 // Initialize plplot 18 plinit(); 19 20 pladv( 0 ); 21 plvpor( 0.0, 1.0, 0.0, 1.0 ); 22 plwind( 0.0, 1.0, 0.0, 1.0 ); 23 plbox( "bc", 0.0, 0, "bc", 0.0, 0 ); 24 25 plsvpa( 50.0, 150.0, 50.0, 100.0 ); 26 plwind( 0.0, 1.0, 0.0, 1.0 ); 27 plbox( "bc", 0.0, 0, "bc", 0.0, 0 ); 28 plptex( 0.5, 0.5, 1.0, 0.0, 0.5, "BOX at (50,150,50,100)" ); 29 30 plend(); 31 return 0; 32 } 33