next up previous
Next: DYNAMICAL PROBLEMS BY SOLUTION Up: Example - The earthquake-proof Previous: Inputs to cplos

Things to do and questions to answer

Use of plstyl() in C programs
Refer to page 73 of the plplot manual. When using plstyl in C programs it is necessary to define arrays mark and space whose elements hold the lengths (in microns) of mark-space pairs.
For example :

		int mark[4],space[4]; /* Allow up to 5 mark-space components */
		mark[0]=1000; space[0]=1000; /* Units are microns */

		plstyl(1,mark,space); /* Simple mark-space each 1mm long */

Note that it is good to add copious comments to source code. Comments can be inserted anywhere in the program by enclosing them in /* .... */ .



Keith Jones
Sun Jan 23 14:17:38 EST 2000