Image obtained by using pbm driver and then converted to png.
1 2 #pragma _ipath "./" 3 #include "plcdemos.h" 4 5 6 int 7 main(int argc, char *argv[]) 8 { 9 10 11 (void) plParseOpts(&argc, argv, PL_PARSE_FULL); 12 13 14 plinit(); 15 16 pladv(0); 17 plvpor(0.0, 1.0, 0.0, 1.0); 18 plwind(0.0, 1.0, 0.0, 1.0); 19 plbox("bc", 0.0, 0, "bc", 0.0, 0); 20 21 plsvpa(50.0, 150.0, 50.0, 100.0); 22 plwind(0.0, 1.0, 0.0, 1.0); 23 plbox("bc", 0.0, 0, "bc", 0.0, 0); 24 plptex(0.5, 0.5, 1.0, 0.0, 0.5, "BOX at (50,150,50,100)"); 25 plend(); 26 exit(0); 27 }
Code description
- 1
- $Id: x10c.c,v 1.13 2002/12/03 08:39:24 airwin Exp $ Window positioning demo.
- 5
- --------------------------------------------------------------------------*\ Demonstrates absolute positioning of graphs on a page. \*--------------------------------------------------------------------------
- 10
- Parse and process command line arguments
- 13
- Initialize plplot