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