plotcompat.h 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. /* This file is part of the GNU plotutils package. Copyright (C) 1995,
  2. 1996, 1997, 1998, 1999, 2000, 2005, 2008, Free Software Foundation, Inc.
  3. The GNU plotutils package is free software. You may redistribute it
  4. and/or modify it under the terms of the GNU General Public License as
  5. published by the Free Software foundation; either version 2, or (at your
  6. option) any later version.
  7. The GNU plotutils package is distributed in the hope that it will be
  8. useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  10. General Public License for more details.
  11. You should have received a copy of the GNU General Public License along
  12. with the GNU plotutils package; see the file COPYING. If not, write to
  13. the Free Software Foundation, Inc., 51 Franklin St., Fifth Floor,
  14. Boston, MA 02110-1301, USA. */
  15. /* 13 functions in traditional (pre-GNU) libplot */
  16. #define arc(xc,yc,x0,y0,x1,y1) pl_arc(xc,yc,x0,y0,x1,y1)
  17. #define box(x0,y0,x1,y1) pl_box(x0,y0,x1,y1)
  18. #define circle(x,y,r) pl_circle(x,y,r)
  19. #define closepl() pl_closepl()
  20. #define cont(x,y) pl_cont(x,y)
  21. #define erase() pl_erase()
  22. #define label(s) pl_label(s)
  23. #define line(x0,y0,x1,y1) pl_line(x0,y0,x1,y1)
  24. #define linemod(s) pl_linemod(s)
  25. #define move(x,y) pl_move(x,y)
  26. #define openpl() pl_openpl()
  27. #define point(x,y) pl_point(x,y)
  28. #define space(x0,y0,x1,y1) pl_space(x0,y0,x1,y1)
  29. /* 46 additional functions in GNU libplot, plus 1 obsolete function
  30. [pl_outfile]. */
  31. #define outfile(outfile) pl_outfile(outfile)
  32. #define alabel(x_justify,y_justify,s) pl_alabel(x_justify,y_justify,s)
  33. #define arcrel(dxc,dyc,dx0,dy0,dx1,dy1) pl_arcrel(dxc,dyc,dx0,dy0,dx1,dy1)
  34. #define bezier2(x0,y0,x1,y1,x2,y2) pl_bezier2(x0,y0,x1,y1,x2,y2)
  35. #define bezier2rel(dx0,dy0,dx1,dy1,dx2,dy2) pl_bezier2rel(dx0,dy0,dx1,dy1,dx2,dy2)
  36. #define bezier3(x0,y0,x1,y1,x2,y2,x3,y3) pl_bezier3(x0,y0,x1,y1,x2,y2,x3,y3)
  37. #define bezier3rel(dx0,dy0,dx1,dy1,dx2,dy2,dx3,dy3) pl_bezier3rel(dx0,dy0,dx1,dy1,dx2,dy2,dx3,dy3)
  38. #define bgcolor(red,green,blue) pl_bgcolor(red,green,blue)
  39. #define bgcolorname(name) pl_bgcolorname(name)
  40. #define boxrel(dx0,dy0,dx1,dy1) pl_boxrel(dx0,dy0,dx1,dy1)
  41. #define capmod(s) pl_capmod(s)
  42. #define circlerel(dx,dy,r) pl_circlerel(dx,dy,r)
  43. #define closepath() pl_closepath()
  44. #define color(red,green,blue) pl_color(red,green,blue)
  45. #define colorname(name) pl_colorname(name)
  46. #define contrel(dx,dy) pl_contrel(dx,dy)
  47. #define ellarc(xc,yc,x0,y0,x1,y1) pl_ellarc(xc,yc,x0,y0,x1,y1)
  48. #define ellarcrel(dxc,dyc,dx0,dy0,dx1,dy1) pl_ellarcrel(dxc,dyc,dx0,dy0,dx1,dy1)
  49. #define ellipse(x,y,rx,ry,angle) pl_ellipse(x,y,rx,ry,angle)
  50. #define ellipserel(dx,dy,rx,ry,angle) pl_ellipserel(dx,dy,rx,ry,angle)
  51. #define endpath() pl_endpath()
  52. #define endsubpath() pl_endsubpath()
  53. #define fillcolor(red,green,blue) pl_fillcolor(red,green,blue)
  54. #define fillcolorname(name) pl_fillcolorname(name)
  55. #define fillmod(s) pl_fillmod(s)
  56. #define filltype(level) pl_filltype(level)
  57. #define flushpl() pl_flushpl()
  58. #define fontname(s) pl_fontname(s)
  59. #define fontsize(size) pl_fontsize(size)
  60. #define havecap(s) pl_havecap(s)
  61. #define joinmod(s) pl_joinmod(s)
  62. #define labelwidth(s) pl_labelwidth(s)
  63. #define linedash(n,dashes,offset) pl_linedash(n,dashes,offset)
  64. #define linerel(dx0,dy0,dx1,dy1) pl_linerel(dx0,dy0,dx1,dy1)
  65. #define linewidth(size) pl_linewidth(size)
  66. #define marker(x,y,type,size) pl_marker(x,y,type,size)
  67. #define markerrel(dx,dy,type,size) pl_markerrel(dx,dy,type,size)
  68. #define moverel(x,y) pl_moverel(x,y)
  69. #define orientation(direction) pl_orientation(direction)
  70. #define pencolor(red,green,blue) pl_pencolor(red,green,blue)
  71. #define pencolorname(name) pl_pencolorname(name)
  72. #define pentype(level) pl_pentype(level)
  73. #define pointrel(dx,dy) pl_pointrel(dx,dy)
  74. #define restorestate() pl_restorestate()
  75. #define savestate() pl_savestate()
  76. #define space2(x0,y0,x1,y1,x2,y2) pl_space2(x0,y0,x1,y1,x2,y2)
  77. #define textangle(angle) pl_textangle(angle)
  78. /* 32 floating point counterparts to some of the above (all GNU additions) */
  79. #define ffontname(s) pl_ffontname(s)
  80. #define ffontsize(s) pl_ffontsize(s)
  81. #define flabelwidth(s) pl_flabelwidth(s)
  82. #define ftextangle(angle) pl_ftextangle(angle)
  83. #define farc(xc,yc,x0,y0,x1,y1) pl_farc(xc,yc,x0,y0,x1,y1)
  84. #define farcrel(dxc,dyc,dx0,dy0,dx1,dy1) pl_farcrel(dxc,dyc,dx0,dy0,dx1,dy1)
  85. #define fbezier2(x0,y0,x1,y1,x2,y2) pl_fbezier2(x0,y0,x1,y1,x2,y2)
  86. #define fbezier2rel(dx0,dy0,dx1,dy1,dx2,dy2) pl_fbezier2rel(dx0,dy0,dx1,dy1,dx2,dy2)
  87. #define fbezier3(x0,y0,x1,y1,x2,y2,x3,y3) pl_fbezier3(x0,y0,x1,y1,x2,y2,x3,y3)
  88. #define fbezier3rel(dx0,dy0,dx1,dy1,dx2,dy2,dx3,dy3) pl_fbezier3rel(dx0,dy0,dx1,dy1,dx2,dy2,dx3,dy3)
  89. #define fbox(x0,y0,x1,y1) pl_fbox(x0,y0,x1,y1)
  90. #define fboxrel(dx0,dy0,dx1,dy1) pl_fboxrel(dx0,dy0,dx1,dy1)
  91. #define fcircle(x,y,r) pl_fcircle(x,y,r)
  92. #define fcirclerel(dx,dy,r) pl_fcirclerel(dx,dy,r)
  93. #define fcont(x,y) pl_fcont(x,y)
  94. #define fcontrel(dx,dy) pl_fcontrel(dx,dy)
  95. #define fellarc(xc,yc,x0,y0,x1,y1) pl_fellarc(xc,yc,x0,y0,x1,y1)
  96. #define fellarcrel(dxc,dyc,dx0,dy0,dx1,dy1) pl_fellarcrel(dxc,dyc,dx0,dy0,dx1,dy1)
  97. #define fellipse(x,y,rx,ry,angle) pl_fellipse(x,y,rx,ry,angle)
  98. #define fellipserel(dx,dy,rx,ry,angle) pl_fellipserel(dx,dy,rx,ry,angle)
  99. #define fline(x0,y0,x1,y1) pl_fline(x0,y0,x1,y1)
  100. #define flinedash(n,dashes,offset) pl_flinedash(n,dashes,offset)
  101. #define flinerel(dx0,dy0,dx1,dy1) pl_flinerel(dx0,dy0,dx1,dy1)
  102. #define flinewidth(size) pl_flinewidth(size)
  103. #define fmarker(x,y,type,size) pl_fmarker(x,y,type,size)
  104. #define fmarkerrel(dx,dy,type,size) pl_fmarkerrel(dx,dy,type,size)
  105. #define fmove(x,y) pl_fmove(x,y)
  106. #define fmoverel(dx,dy) pl_fmoverel(dx,dy)
  107. #define fpoint(x,y) pl_fpoint(x,y)
  108. #define fpointrel(dx,dy) pl_fpointrel(dx,dy)
  109. #define fspace(x0,y0,x1,y1) pl_fspace(x0,y0,x1,y1)
  110. #define fspace2(x0,y0,x1,y1,x2,y2) pl_fspace2(x0,y0,x1,y1,x2,y2)
  111. /* 6 floating point operations with no integer counterpart (GNU additions) */
  112. #define fconcat(m0,m1,m2,m3,m4,m5) pl_fconcat(m0,m1,m2,m3,m4,m5)
  113. #define fmiterlimit(limit) pl_fmiterlimit(limit)
  114. #define frotate(theta) pl_frotate(theta)
  115. #define fscale(x,y) pl_fscale(x,y)
  116. #define fsetmatrix(m0,m1,m2,m3,m4,m5) pl_fsetmatrix(m0,m1,m2,m3,m4,m5)
  117. #define ftranslate(x,y) pl_ftranslate(x,y)
  118. /* 4 functions specific to the C binding (for construction/destruction of
  119. Plotters, and setting of Plotter parameters) */
  120. #define newpl(type,infile,outfile,errfile) pl_newpl(type,infile,outfile,errfile)
  121. #define selectpl(handle) pl_selectpl(handle)
  122. #define deletepl(handle) pl_deletepl(handle)
  123. #define parampl(parameter,value) pl_parampl(parameter,value)