home *** CD-ROM | disk | FTP | other *** search
- /* This demo file shows the available symbols */
- /* which can be used for data points. Symbols names */
- /* equating to the numerical constants are defined */
- /* in splot.h */
-
- #include <splot.h>
- main()
- {
- int i;
- /* make the symbols large. Since they are just a special font */
- /* make the fontwidth large. */
- set(FONTWIDTH,4);
- /* change the symbol orientation just for fun */
- set(FONTDIR,30);
- moveto(1,1);
- /* show all 17 symbols in a diagonal line */
- for (i = 0;i < 17;i++)
- {
- /* use a relative move here */
- rmoveto(1,1);
- symbol(i);
- }
- /* try other form of symbol */
- set(SYMMULT,2);
- symbol(4,12,OSTAR);
- set(SYMMULT,0.5);
- /* add some extra arrows to illustrate the */
- /* arrowto() function */
- moveto(3.82,17.19);
- arrowto(7.96,15.68);
- arrowto(10.21,19.72);
- rarrowto(3,0);
- stroke();
- }
-