home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Science / Science.zip / splot184.zip / SPLOT.H < prev    next >
C/C++ Source or Header  |  1997-02-11  |  3KB  |  161 lines

  1. /* splot.h */
  2.  
  3. #ifndef SPLOT_H
  4. #define SPLOT_H
  5.  
  6. /* general defines */
  7. #define OFF 0
  8. #define ON 1
  9. #define PI 3.141592654
  10.  
  11. /* define line styles */
  12. #define SOLID 0
  13. #define DASHED 1.0,0.5
  14. #define DOTTED 0.2,0.2
  15. #define DOTDASH 1.0,0.5,0.2,0.5
  16.  
  17. /* page size in cm */
  18. #define XLENGTH 20.00
  19. #define YLENGTH 26.00
  20.  
  21. /* define colours */
  22. #define INVIS -1
  23. #define BLACK 0 
  24. #define BLUE 1
  25. #define GREEN 2
  26. #define CYAN 3
  27. #define RED 4
  28. #define MAGENTA 5
  29. #define BROWN 6
  30. #define WHITE 7
  31.  
  32. /* define the axes lables */
  33. #define LOWER 0
  34. #define BOTTOM 0
  35. #define UPPER 2
  36. #define TOP 2
  37. #define LEFT 1
  38. #define RIGHT 3
  39. #define XAXES 4
  40. #define YAXES 5
  41. #define XYAXES 6
  42.  
  43. #define CENTER 4
  44. #define XCENTER 1.7e308
  45. #define YCENTER 1.7e308
  46.  
  47. /* define axes types */
  48. #define LINEAR 0x11
  49. #define LOGX 0x12
  50. #define LOGY 0x21
  51. #define LOGLOG 0x22
  52. #define INVX 0x14
  53. #define INVY 0x41
  54. #define INVINV 0x44
  55. #define INVXLOGY 0x24
  56. #define LOGXINVY 0x42
  57.  
  58. /* define line cap styles */
  59. #define BUTTCAP 0
  60. #define ROUNDCAP 1
  61. #define PROJCAP 2
  62.  
  63. /* define line join styles */
  64. #define MITERJOIN 3
  65. #define MITREJOIN 3
  66. #define ROUNDJOIN 4
  67. #define BEVELJOIN 5
  68.  
  69. /* define fill rules */
  70. #define NONZWIND 0
  71. #define EVENODD 1
  72.  
  73. /* define which vals for errorbars */
  74. #define XVALS 0
  75. #define YVALS 1
  76.  
  77. /* define ALL_Y for use with plodata */
  78. #define ALL_Y -1
  79.  
  80. /* define default font info */
  81. #define CELL_WIDTH        0.7       /* default font width */
  82. #define CELL_ASPECT       2.0       /* default font height/width ratio */
  83. #define CELL_SPACING      2.0
  84.  
  85. #define NFONTS        7             /* number of available fonts */
  86. #define NORMALTEXT    0             /* for use with array of font pointers */
  87. #define ROMAN_S       1
  88. #define ROMAN_C       2
  89. #define GREEK_S       3
  90. #define GREEK_C       4
  91. #define ITALIC_C      5
  92. #define SYMBOL_S      6
  93. #define SIMPLEX       0
  94. #define COMPLEX       1
  95.  
  96. /* define symbol names */
  97. #define OCIRCLE 0
  98. #define OSQUARE 1
  99. #define OTRIANGLE 2
  100. #define ODIAMOND 3
  101. #define OSTAR 4
  102. #define OARROW 5
  103. #define PLUS 6
  104. #define CROSS 7
  105. #define MULT 8
  106. #define CIRCLE 9
  107. #define SQUARE 10
  108. #define TRIANGLE 11
  109. #define DIAMOND 12
  110. #define STAR 13
  111. #define ARROW 14
  112.  
  113. /* define plot types */
  114. #define LINES 0
  115. #define SYMBOLS 1
  116. #define SYM_LINES 2
  117.  
  118. /* define set options */
  119. #define AXESCLIP        0 
  120. #define AXESTYPE        1 
  121. #define CURSYMBOL       2 
  122. #define FILLRULE        3 
  123. #define FLATNESS        4 
  124. #define FONT            5 
  125. #define FONTASPECT      6 
  126. #define FONTDIR         7 
  127. #define FONTMULT        8 
  128. #define FONTSPACE       9 
  129. #define FONTWIDTH       10
  130. #define LABELMARG       11
  131. #define LINECAP         12
  132. #define LINECOLOUR      13
  133. #define LINEJOIN        14
  134. #define LINESTYLE       15
  135. #define LINEWIDTH       16
  136. #define MITERLIMIT      17
  137. #define PAGEROT         18
  138. #define PATTOFF         19
  139. #define PLOTTYPE        20
  140. #define SCALEALL        21
  141. #define SCRIPTSCALE     22
  142. #define SCRIPTSHIFT     23
  143. #define SYMMULT         24
  144. #define TICKLMARG       25
  145. #define TICKLENGTH      26
  146. #define XMULT           27
  147. #define XRANGE          28
  148. #define XSHIFT          29
  149. #define YMULT           30
  150. #define YRANGE          31
  151. #define YSHIFT          32
  152.  
  153.  
  154. #define LINECOLOR       13
  155. #define MITRELIMIT      17
  156. #define PAGE_ROT        18
  157. #endif
  158.  
  159. /* splot.h */
  160.  
  161.