/usr/lib/emboss/include/ajgraph.h is in emboss-lib 6.6.0+dfsg-6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 | /* @include ajgraph ***********************************************************
**
** General Plot/Printing routines.
**
** @version $Revision: 1.42 $
** @modified $Date: 2011/10/18 14:23:41 $ by $Author: rice $
** @@
**
** This library is free software; you can redistribute it and/or
** modify it under the terms of the GNU Lesser General Public
** License as published by the Free Software Foundation; either
** version 2.1 of the License, or (at your option) any later version.
**
** This library is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
** Lesser General Public License for more details.
**
** You should have received a copy of the GNU Lesser General Public
** License along with this library; if not, write to the Free Software
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
** MA 02110-1301, USA.
**
******************************************************************************/
#ifndef AJGRAPH_H
#define AJGRAPH_H
/* ========================================================================= */
/* ============================= include files ============================= */
/* ========================================================================= */
#include "ajdefine.h"
#include "plplot.h"
#include "ajgraphstruct.h"
#include "ajdefine.h"
#include "ajstr.h"
#include "ajseqdata.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
AJ_BEGIN_DECLS
/* ========================================================================= */
/* =============================== constants =============================== */
/* ========================================================================= */
#define GRAPH_XGAP 60
#define GRAPH_YGAP 60
#define GRAPH_TITLE_GAP 60
#define AJGRAPH_X_BOTTOM 0x0001 /* print xaxis bottom line */
#define AJGRAPH_Y_LEFT 0x0002 /* print yaxis left line */
#define AJGRAPH_X_TOP 0x0004 /* print xaxis top line */
#define AJGRAPH_Y_RIGHT 0x0008 /* printf y axis on the right*/
#define AJGRAPH_X_TICK 0x0010 /* add tick marks for x axis (bottom) */
#define AJGRAPH_Y_TICK 0x0020 /* add tick marks for y axis (left) */
#define AJGRAPH_X_LABEL 0x0040 /* add x axis label */
#define AJGRAPH_Y_LABEL 0x0080 /* add y axis label */
#define AJGRAPH_TITLE 0x0100 /* add title */
#define AJGRAPH_JOINPOINTS 0x0200 /* join the point data by a line */
#define AJGRAPH_OVERLAP 0x0400 /* write plots on top of each other */
#define AJGRAPH_Y_NUMLABEL_LEFT 0x0800
#define AJGRAPH_Y_INVERT_TICK 0x1000
#define AJGRAPH_Y_GRID 0x2000
#define AJGRAPH_X_NUMLABEL_ABOVE 0x4000
#define AJGRAPH_X_INVERT_TICK 0x8000
#define AJGRAPH_X_GRID 0x10000
#define AJGRAPH_CIRCLEPOINTS 0x20000
#define AJGRAPH_SUBTITLE 0x40000
#define AJGRAPH_GAPS 0x80000
#define GRAPH_XY (AJGRAPH_X_BOTTOM + AJGRAPH_Y_LEFT + AJGRAPH_X_TOP + \
AJGRAPH_Y_RIGHT + AJGRAPH_X_TICK + AJGRAPH_Y_TICK + \
AJGRAPH_Y_LABEL + AJGRAPH_JOINPOINTS + AJGRAPH_X_LABEL + \
AJGRAPH_TITLE + AJGRAPH_SUBTITLE + AJGRAPH_OVERLAP)
#define GRAPH_XY_MAIN (AJGRAPH_X_BOTTOM + AJGRAPH_Y_LEFT + AJGRAPH_Y_RIGHT + \
AJGRAPH_X_TOP + AJGRAPH_Y_TICK + AJGRAPH_X_LABEL + \
AJGRAPH_Y_LABEL + AJGRAPH_JOINPOINTS + AJGRAPH_TITLE + \
AJGRAPH_SUBTITLE + AJGRAPH_OVERLAP)
/* ========================================================================= */
/* ============================== public data ============================== */
/* ========================================================================= */
/* ========================================================================= */
/* =========================== public functions ============================ */
/* ========================================================================= */
/*
** Prototype definitions
*/
void ajGraphicsListDevices (AjPList list);
void ajGraphicsxyListDevices (AjPList list);
ajint* ajGraphicsBasecolourNewNuc(const AjPStr codes);
ajint* ajGraphicsBasecolourNewProt(const AjPStr codes);
ajint ajGraphicsCheckColourC(const char* text);
ajint ajGraphicsCheckColourS(const AjPStr colour);
void ajGraphicsGetCharsize(float *defheight, float *currentscale);
ajint ajGraphicsGetFgcolour(void);
ajuint ajGraphicsGetOutfiles(AjPList* files);
void ajGraphGetParamsPage(const AjPGraph thys,
float *xp,float *yp, ajint *xleng,
ajint *yleng, ajint *xoff, ajint *yoff);
void ajGraphicsGetParamsPage(float *xp,float *yp, ajint *xleng,
ajint *yleng, ajint *xoff, ajint *yoff);
void ajGraphicsResetBgcolour(void);
void ajGraphicsResetFgcolour(void);
void ajGraphicsSetBgcolourBlack(void);
void ajGraphicsSetBgcolourWhite(void);
float ajGraphicsSetCharscale(float scale);
float ajGraphicsSetCharsize(float size);
float ajGraphicsSetDefcharsize(float size);
void ajGraphicsSetDevice(const AjPGraph graph);
ajint ajGraphicsSetFgcolour(ajint colour);
void ajGraphicsSetPortrait(AjBool set);
void ajGraphicsSetPenwidth(float width);
ajint ajGraphicsSetFillpat (ajint style);
ajint ajGraphicsSetLinestyle (ajint style);
void ajGraphicsSetLabelsC(const char *x, const char *y,
const char *title, const char *subtitle);
void ajGraphicsSetLabelsS(const AjPStr x, const AjPStr y,
const AjPStr title, const AjPStr subtitle);
void ajGraphicsPlenv (float xmin, float xmax, float ymin, float ymax,
ajint flags);
void ajGraphicsPrintType(AjPFile outf, AjBool full);
void ajGraphicsSetPagesize(ajuint pagewidth, ajuint pageheight);
void ajGraphicsClose (void);
void ajGraphicsCloseWin (void);
void ajGraphicsDumpDevices (void);
void ajGraphicsxyDumpDevices (void);
void ajGraphicsCalcRange(const float *array, ajuint npoints,
float *min, float *max);
PLFLT *ajGraphicsCalcCoord(PLFLT xcentre, PLFLT ycentre, PLFLT Radius,
PLFLT Angle);
PLFLT ajGraphicsCalcTextlengthC(const char *text);
PLFLT ajGraphicsCalcTextlengthS(const AjPStr str);
PLFLT ajGraphicsCalcTextheight(void);
PLFLT ajGraphicsCalcDistance(PLFLT xx1, PLFLT yy1,
PLFLT xx2, PLFLT yy2);
PLFLT ajGraphicsCalcCharsize(PLFLT xx1, PLFLT yy1,
PLFLT xx2, PLFLT yy2,
const char *text, PLFLT TextHeight);
void ajGraphicsDrawarcArc(PLFLT xcentre, PLFLT ycentre, PLFLT radius,
PLFLT startangle, PLFLT endangle);
void ajGraphicsDrawbarsHoriz(ajuint num, PLFLT *y,
PLFLT *xmin, PLFLT *xmax);
void ajGraphicsDrawbarsVert(ajuint num, PLFLT *x,
PLFLT *ymin, PLFLT *ymax);
void ajGraphicsDrawposBox(PLFLT xx0, PLFLT yy0,PLFLT size);
void ajGraphicsDrawposBoxFill(PLFLT xx0, PLFLT yy0, PLFLT size);
void ajGraphicsDrawposCircle(PLFLT xcentre, PLFLT ycentre,
float radius);
void ajGraphicsDrawposDia(PLFLT xx0, PLFLT yy0, PLFLT size);
void ajGraphicsDrawposDiaFill(PLFLT xx0, PLFLT yy0, PLFLT size);
void ajGraphicsDrawsetDots(ajuint nhum, PLFLT *xx1,PLFLT *yy1);
void ajGraphicsDrawposLine(PLFLT xx1,PLFLT yy1,PLFLT xx2,PLFLT yy2);
void ajGraphicsDrawsetLines(ajuint num, PLFLT *xx,PLFLT *yy,
PLFLT *xx2,PLFLT *yy2);
void ajGraphicsDrawsetPoly(ajuint num, PLFLT *x, PLFLT *y);
void ajGraphicsDrawsetPolyFill(ajuint num, PLFLT *x, PLFLT *y);
void ajGraphicsDrawposRect(PLFLT x, PLFLT y,PLFLT xx1, PLFLT yy1) ;
void ajGraphicsDrawposRectFill(PLFLT x, PLFLT y,
PLFLT xx1, PLFLT yy1) ;
void ajGraphicsDrawarcRect(PLFLT xcentre, PLFLT ycentre, PLFLT radius,
PLFLT startangle, PLFLT endangle,
PLFLT height);
void ajGraphicsDrawarcRectFill(PLFLT xcentre, PLFLT ycentre,
PLFLT radius,
PLFLT startangle, PLFLT endangle,
PLFLT height);
void ajGraphicsSetRlabelC(const char *text);
void ajGraphicsSetRlabelS(const AjPStr str);
void ajGraphicsDrawsetSymbols(ajuint num, PLFLT *xx,PLFLT *yy,
ajuint symbol);
void ajGraphicsDrawposTextJustify(PLFLT x, PLFLT y,
const char *txt,
PLFLT just);
void ajGraphicsDrawarcTextJustify(PLFLT xcentre, PLFLT ycentre,
PLFLT radius, PLFLT startangle,
PLFLT endangle,
const char *txt, PLFLT just);
void ajGraphicsDrawposTextAtend(PLFLT x, PLFLT y, const char *txt);
void ajGraphicsDrawposTextAtmid(PLFLT x, PLFLT y, const char *txt);
void ajGraphicsDrawposTextAtstart(PLFLT x, PLFLT y,
const char *txt);
void ajGraphicsDrawposTextAtlineJustify(PLFLT x, PLFLT y,
PLFLT x2, PLFLT y2,
const char *txt, PLFLT just);
void ajGraphicsDrawposTri(PLFLT x, PLFLT y, PLFLT x2, PLFLT y2,
PLFLT x3, PLFLT y3);
void ajGraphicsDrawposTriFill(PLFLT x, PLFLT y, PLFLT x2, PLFLT y2,
PLFLT x3, PLFLT y3);
AjPGraph ajGraphNew (void);
AjPGraph ajGraphxyNewI (ajuint numofpoints);
void ajGraphClear(AjPGraph thys);
const char* ajGraphGetSubtitleC(const AjPGraph thys);
const AjPStr ajGraphGetSubtitleS(const AjPGraph thys);
const char* ajGraphGetTitleC(const AjPGraph thys);
const AjPStr ajGraphGetTitleS(const AjPGraph thys);
const char* ajGraphGetXlabelC(const AjPGraph thys);
const AjPStr ajGraphGetXlabelS(const AjPGraph thys);
const char* ajGraphGetYlabelC(const AjPGraph thys);
const AjPStr ajGraphGetYlabelS(const AjPGraph thys);
void ajGraphInitSeq (AjPGraph thys, const AjPSeq seq);
AjBool ajGraphIsData(const AjPGraph thys);
void ajGraphNewpage (AjPGraph thys, AjBool resetdefaults);
void ajGraphAddLine (AjPGraph thys, float x, float y,
float x2, float y2, ajint colour);
void ajGraphAddRect (AjPGraph thys, float x, float y,
float x2, float y2, ajint colour,
ajint fill);
void ajGraphAddTextC (AjPGraph thys, float x, float y,
ajint colour, const char *text);
void ajGraphAddTextScaleC (AjPGraph thys, float x, float y,
ajint colour, float scale,
const char *text);
void ajGraphAddTextS (AjPGraph thys, float x, float y,
ajint colour, const AjPStr str);
void ajGraphAddTextScaleS (AjPGraph thys, float x, float y,
ajint colour, float scale,
const AjPStr str);
void ajGraphOpenFlags(AjPGraph thys, PLFLT xmin, PLFLT xmax,
PLFLT ymin, PLFLT ymax, ajint flags);
void ajGraphOpenPlotset (AjPGraph thys, ajuint numofsets);
void ajGraphOpenWin (AjPGraph thys, float xmin, float xmax,
float ymin, float ymax);
void ajGraphOpenMm(AjPGraph thys, float * xmm, float *ymm);
AjBool ajGraphSetDevicetype(AjPGraph thys, const AjPStr type);
void ajGraphSetMulti (AjPGraph thys, ajuint numsets);
void ajGraphicsSetFilename (const AjPGraph graph);
void ajGraphTrace (const AjPGraph thys);
AjBool ajGraphDataAdd (AjPGraph thys, AjPGraphdata graphdata);
AjBool ajGraphDataReplace (AjPGraph thys, AjPGraphdata graphdata);
AjBool ajGraphDataReplaceI (AjPGraph thys, AjPGraphdata graphdata,
ajuint num);
void ajGraphAppendTitleC(AjPGraph thys, const char* txt);
void ajGraphAppendTitleS(AjPGraph thys, const AjPStr str);
void ajGraphxyDel (AjPGraph* pmult);
void ajGraphxyDisplay (AjPGraph thys, AjBool closeit );
void ajGraphxySetRanges (AjPGraph thys);
AjBool ajGraphxySetDevicetype (AjPGraph thys, const AjPStr devicetype);
void ajGraphxyShowPointsCircle (AjPGraph thys, AjBool set);
void ajGraphSetFlag (AjPGraph thys, ajint flag, AjBool istrue);
void ajGraphxyShowPointsJoin (AjPGraph thys, AjBool set);
void ajGraphxySetMinmax(AjPGraph thys,float xmin,float xmax,
float ymin,float ymax);
void ajGraphSetOutfileS (AjPGraph thys, const AjPStr txt);
void ajGraphSetOutfileC (AjPGraph thys, const char *txt);
void ajGraphxySetflagOverlay (AjPGraph thys, AjBool set);
void ajGraphShowSubtitle (AjPGraph thys, AjBool set);
void ajGraphShowTitle (AjPGraph thys, AjBool set);
void ajGraphSetDatanameC(AjPGraph thys, const char *name);
void ajGraphSetDatanameS(AjPGraph thys, const AjPStr name);
void ajGraphSetDescC(AjPGraph thys, const char* txt);
void ajGraphSetDescS(AjPGraph thys, const AjPStr str);
void ajGraphSetOutdirS(AjPGraph thys, const AjPStr str);
void ajGraphSetTitleC(AjPGraph thys, const char *title);
void ajGraphSetTitleS(AjPGraph thys, const AjPStr title);
void ajGraphSetSubtitleC(AjPGraph thys, const char *title);
void ajGraphSetSubtitleS(AjPGraph thys, const AjPStr title);
void ajGraphSetXlabelC(AjPGraph thys, const char *title);
void ajGraphSetXlabelS(AjPGraph thys, const AjPStr title);
void ajGraphSetYlabelC(AjPGraph thys, const char *title);
void ajGraphSetYlabelS(AjPGraph thys, const AjPStr title);
void ajGraphxySetflagGaps(AjPGraph thys, AjBool overlap);
void ajGraphxyShowRaxis(AjPGraph thys, AjBool set);
void ajGraphxyShowUaxis(AjPGraph thys, AjBool set);
void ajGraphxyShowUnum(AjPGraph thys, AjBool set);
void ajGraphxyShowXaxis(AjPGraph thys, AjBool set);
void ajGraphxyShowXlabel(AjPGraph thys, AjBool set);
void ajGraphxyShowXtick(AjPGraph thys, AjBool set);
void ajGraphxyShowYaxis(AjPGraph thys, AjBool set);
void ajGraphxyShowYlabel(AjPGraph thys, AjBool set);
void ajGraphxyShowYnum(AjPGraph thys, AjBool set);
void ajGraphxyShowYtick(AjPGraph thys, AjBool set);
void ajGraphxySetXendF(AjPGraph thys, float val);
void ajGraphxyShowXgrid(AjPGraph thys, AjBool set);
void ajGraphxyShowXinvert(AjPGraph thys, AjBool set);
void ajGraphxySetXrangeII(AjPGraph thys, ajint start, ajint end);
void ajGraphxySetXstartF(AjPGraph thys, float val);
void ajGraphxySetYendF(AjPGraph thys, float val);
void ajGraphxyShowYgrid(AjPGraph thys, AjBool set);
void ajGraphxyShowYinvert(AjPGraph thys, AjBool set);
void ajGraphxySetYrangeII(AjPGraph thys, ajint start, ajint end);
void ajGraphxySetYstartF(AjPGraph thys, float val);
AjPGraphdata ajGraphdataNew (void);
AjPGraphdata ajGraphdataNewI (ajuint numsets);
void ajGraphdataDel(AjPGraphdata *thys);
void ajGraphdataAddposLine (AjPGraphdata graphs,
float x, float y,
float x2, float y2, ajint colour);
void ajGraphdataAddposRect (AjPGraphdata graphs,
float x, float y,
float x2, float y2,
ajint colour, ajint fill);
void ajGraphdataAddposTextC (AjPGraphdata graphs,
float x, float y,
ajint colour, const char *text);
void ajGraphdataAddposTextS (AjPGraphdata graphs,
float x, float y,
ajint colour, const AjPStr str);
void ajGraphdataAddposTextScaleC (AjPGraphdata graphs,
float x, float y,
ajint colour, float scale,
const char *text);
void ajGraphdataAddposTextScaleS (AjPGraphdata graphs,
float x, float y,
ajint colour, float scale,
const AjPStr str);
void ajGraphdataSetMinmax (AjPGraphdata graphdata, float xmin,
float xmax, float ymin, float ymax);
void ajGraphdataSetTruescale(AjPGraphdata graphdata, float xmin,
float xmax, float ymin, float ymax);
void ajGraphdataSetTypeC(AjPGraphdata graphdata,
const char *txt);
void ajGraphdataSetTypeS(AjPGraphdata graphdata,
const AjPStr str);
void ajGraphdataCalcXY (AjPGraphdata graphdata,
ajuint numofpoints,
float start, float incr,
const float* y);
void ajGraphdataAddXY (AjPGraphdata graphdata,
const float *x, const float *y);
void ajGraphdataSetDatanameC (AjPGraphdata graphdata,
const char *title);
void ajGraphdataSetDatanameS (AjPGraphdata graphdata,
const AjPStr title);
void ajGraphdataSetSubtitleC (AjPGraphdata graphdata,
const char *title);
void ajGraphdataSetSubtitleS (AjPGraphdata graphdata,
const AjPStr title);
void ajGraphdataSetTitleC (AjPGraphdata graphdata,
const char *title);
void ajGraphdataSetTitleS (AjPGraphdata graphdata,
const AjPStr title);
void ajGraphdataSetXlabelC (AjPGraphdata graphdata,
const char *title);
void ajGraphdataSetXlabelS (AjPGraphdata graphdata,
const AjPStr title);
void ajGraphdataSetYlabelC (AjPGraphdata graphdata,
const char *title);
void ajGraphdataSetYlabelS (AjPGraphdata graphdata,
const AjPStr title);
void ajGraphdataSetColour (AjPGraphdata graphdata,
ajint colour);
void ajGraphdataSetLinetype (AjPGraphdata graphdata,
ajint type);
void ajGraphdataTrace (const AjPGraphdata thys);
void ajGraphicsExit(void);
void ajGraphicsUnused(void);
/*
** End of prototype definitions
*/
#ifdef AJ_COMPILE_DEPRECATED_BOOK
#endif
#ifdef AJ_COMPILE_DEPRECATED
__deprecated void ajGraphPlenv (float xmin, float xmax,
float ymin, float ymax,
ajint flags);
__deprecated void ajGraphPrintType(AjPFile outf, AjBool full);
__deprecated void ajGraphDumpDevices (void);
__deprecated void ajGraphxyDumpDevices (void);
__deprecated void ajGraphListDevices (AjPList list);
__deprecated void ajGraphxyListDevices (AjPList list);
__deprecated void ajGraphOpenPlot(AjPGraph thys, ajuint numofsets);
__deprecated void ajGraphOpen (AjPGraph thys, PLFLT xmin, PLFLT xmax,
PLFLT ymin, PLFLT ymax, ajint flags);
__deprecated void ajGraphClose (void);
__deprecated void ajGraphCloseWin (void);
__deprecated void ajGraphdataAddLine (AjPGraphdata graphs,
float x, float y,
float x2, float y2,
ajint colour);
__deprecated void ajGraphdataAddRect (AjPGraphdata graphs,
float x, float y,
float x2, float y2,
ajint colour, ajint fill);
__deprecated void ajGraphdataSetXY (AjPGraphdata graphdata,
const float *x, const float *y);
__deprecated void ajGraphdataAddTextScale (AjPGraphdata graphs,
float xx1, float yy1,
ajint colour, float scale,
const char *text);
__deprecated void ajGraphdataAddText (AjPGraphdata graphs,
float xx1, float yy1,
ajint colour, const char *text);
__deprecated void ajGraphdataSetMaxima(AjPGraphdata graphdata,
float xmin, float xmax,
float ymin, float ymax);
__deprecated void ajGraphdataSetMaxMin (AjPGraphdata graphdata,
float xmin, float xmax,
float ymin, float ymax);
__deprecated void ajGraphdataSetLineType (AjPGraphdata graphdata,
ajint type);
__deprecated void ajGraphxySetXinvert(AjPGraph thys, AjBool set);
__deprecated void ajGraphxySetXgrid(AjPGraph thys, AjBool set);
__deprecated void ajGraphxySetGaps(AjPGraph thys, AjBool set);
__deprecated void ajGraphxySetOverLap (AjPGraph thys, AjBool overlap);
__deprecated void ajGraphxySetMaxMin(AjPGraph thys,
float xmin,float xmax,
float ymin,float ymax);
__deprecated void ajGraphxySetJoinPoints (AjPGraph thys, AjBool set);
__deprecated void ajGraphxySetCirclePoints (AjPGraph thys, AjBool set);
__deprecated void ajGraphAddText (AjPGraph thys, float xx1, float yy1,
ajint colour, const char *text);
__deprecated void ajGraphAddTextScale (AjPGraph thys,
float xx1, float yy1,
ajint colour, float scale,
const char *text);
__deprecated void ajGraphxyCheckMaxMin (AjPGraph thys);
__deprecated void ajGraphdataSetXTitleC (AjPGraphdata graphdata,
const char *title);
__deprecated void ajGraphdataSetXTitleS (AjPGraphdata graphdata,
const AjPStr title);
__deprecated void ajGraphdataSetYTitleC (AjPGraphdata graphdata,
const char *title);
__deprecated void ajGraphdataSetYTitleS (AjPGraphdata graphdata,
const AjPStr title);
__deprecated const char* ajGraphGetXTitleC(const AjPGraph thys);
__deprecated const AjPStr ajGraphGetXTitleS(const AjPGraph thys);
__deprecated const char* ajGraphGetYTitleC(const AjPGraph thys);
__deprecated const AjPStr ajGraphGetYTitleS(const AjPGraph thys);
__deprecated void ajGraphdataSetSubTitleC (AjPGraphdata graphdata,
const char *title);
__deprecated void ajGraphdataSetSubTitleS (AjPGraphdata graphdata,
const AjPStr title);
__deprecated const char* ajGraphGetSubTitleC(const AjPGraph thys);
__deprecated const AjPStr ajGraphGetSubTitleS(const AjPGraph thys);
__deprecated void ajGraphdataSetYTitle (AjPGraphdata graphdata,
const AjPStr title);
__deprecated void ajGraphdataSetXTitle (AjPGraphdata graphdata,
const AjPStr title);
__deprecated void ajGraphdataSetTitle (AjPGraphdata graphdata,
const AjPStr title);
__deprecated void ajGraphdataSetSubTitle (AjPGraphdata graphdata,
const AjPStr title);
__deprecated const AjPStr ajGraphGetSubTitle(const AjPGraph thys);
__deprecated const AjPStr ajGraphGetTitle(const AjPGraph thys);
__deprecated const AjPStr ajGraphGetXTitle(const AjPGraph thys);
__deprecated const AjPStr ajGraphGetYTitle(const AjPGraph thys);
__deprecated PLFLT ajGraphTextLength(PLFLT xx1, PLFLT yy1,
PLFLT xx2, PLFLT yy2,
const char *text);
__deprecated PLFLT ajGraphTextHeight(PLFLT xx1, PLFLT xx2,
PLFLT yy1, PLFLT yy2);
__deprecated PLFLT ajGraphFitTextAtline(PLFLT xx1, PLFLT yy1,
PLFLT xx2, PLFLT yy2,
const char *text,
PLFLT TextHeight);
__deprecated PLFLT ajGraphDistPts(PLFLT xx1, PLFLT yy1,
PLFLT xx2, PLFLT yy2);
__deprecated void ajGraphArrayMaxMin(const float *array,
ajint npoints,
float *min, float *max);
__deprecated PLFLT *ajComputeCoord(PLFLT xcentre, PLFLT ycentre,
PLFLT Radius, PLFLT Angle);
__deprecated ajint ajGraphicsGetColourFore(void);
__deprecated void ajGraphicsDrawRlabelC(const char *text);
__deprecated void ajGraphicsDrawRlabelS(const AjPStr str);
__deprecated void ajGraphNewPage (AjPGraph thys,
AjBool resetdefaults);
__deprecated void ajGraphSetTitlePlus(AjPGraph thys,
const AjPStr title);
__deprecated AjBool ajGraphxySet (AjPGraph thys, const AjPStr type);
__deprecated void ajGraphSetOutputDirS(AjPGraph thys,
const AjPStr str);
__deprecated void ajGraphSetOut (AjPGraph thys, const AjPStr txt);
__deprecated void ajGraphSetOutC (AjPGraph thys, const char *txt);
__deprecated void ajGraphSetName (const AjPGraph thys);
__deprecated void ajGraphSetPage(ajuint width, ajuint height);
__deprecated AjBool ajGraphSet (AjPGraph thys, const AjPStr type);
__deprecated void ajGraphSetPenWidth(float width);
__deprecated ajint ajGraphSetFillPat (ajint style);
__deprecated ajint ajGraphSetLineStyle (ajint style);
__deprecated void ajGraphSetDevice(const AjPGraph thys);
__deprecated ajint ajGraphInfo(AjPList* files);
__deprecated void ajGraphGetOut (float *xp,float *yp,
ajint *xleng, ajint *yleng,
ajint *xoff, ajint *yoff);
__deprecated ajint ajGraphGetColour(void);
__deprecated ajint* ajGraphGetBaseColour (void);
__deprecated ajint* ajGraphGetBaseColourNuc(const AjPStr codes);
__deprecated ajint* ajGraphGetBaseColourProt(const AjPStr codes);
__deprecated float ajGraphSetCharScale (float scale);
__deprecated float ajGraphSetCharSize(float size);
__deprecated void ajGraphGetCharSize(float *defheight,
float *currentscale);
__deprecated float ajGraphSetDefCharSize (float size);
__deprecated void ajGraphxySetXBottom (AjPGraph thys, AjBool set);
__deprecated void ajGraphxySetXLabelTop (AjPGraph thys, AjBool set);
__deprecated void ajGraphxySetXTop (AjPGraph thys, AjBool set);
__deprecated void ajGraphxySetXEnd (AjPGraph thys, float val);
__deprecated void ajGraphxySetXGrid (AjPGraph thys, AjBool set);
__deprecated void ajGraphxySetXInvTicks (AjPGraph thys, AjBool set);
__deprecated void ajGraphxySetXLabel (AjPGraph thys, AjBool set);
__deprecated void ajGraphxySetXRangeII (AjPGraph thys,
ajint start, ajint end);
__deprecated void ajGraphxySetXStart (AjPGraph thys, float val);
__deprecated void ajGraphxySetYEnd (AjPGraph thys, float val);
__deprecated void ajGraphxySetYGrid (AjPGraph thys, AjBool set);
__deprecated void ajGraphxySetYInvTicks (AjPGraph thys, AjBool set);
__deprecated void ajGraphxySetYStart (AjPGraph thys, float val);
__deprecated void ajGraphxySetYLeft (AjPGraph thys, AjBool set);
__deprecated void ajGraphxySetYLabel (AjPGraph thys, AjBool set);
__deprecated void ajGraphxySetXTick (AjPGraph thys, AjBool set);
__deprecated void ajGraphxySetYLabelLeft (AjPGraph thys, AjBool set);
__deprecated void ajGraphxySetYRangeII (AjPGraph thys,
ajint start, ajint end);
__deprecated void ajGraphxySetYTick (AjPGraph thys, AjBool set);
__deprecated void ajGraphxySetYRight(AjPGraph thys, AjBool set);
__deprecated void ajGraphSetDir(AjPGraph thys, const AjPStr txt);
__deprecated void ajGraphSetDesc(AjPGraph thys, const AjPStr title);
__deprecated void ajGraphSetSubTitle (AjPGraph thys,
const AjPStr title);
__deprecated void ajGraphSetSubTitleC (AjPGraph thys,
const char *title);
__deprecated void ajGraphSetXTitle (AjPGraph thys,
const AjPStr title);
__deprecated void ajGraphSetXTitleC (AjPGraph thys,
const char *title);
__deprecated void ajGraphSetYTitle (AjPGraph thys,
const AjPStr title);
__deprecated void ajGraphSetYTitleC (AjPGraph thys,
const char *title);
__deprecated void ajGraphSetSubTitleDo (AjPGraph thys, AjBool set);
__deprecated void ajGraphSetTitleDo (AjPGraph thys, AjBool set);
__deprecated void ajGraphSetTitle (AjPGraph thys, const AjPStr title);
__deprecated void ajGraphLabel (const char *x, const char *y,
const char *title,
const char *subtitle);
__deprecated void ajGraphDrawTextOnCurve(PLFLT xcentre, PLFLT ycentre,
PLFLT Radius,
PLFLT StartAngle,
PLFLT EndAngle,
const char *Text, PLFLT just);
__deprecated void ajGraphFillRectangleOnCurve(PLFLT xcentre,
PLFLT ycentre,
PLFLT Radius,
PLFLT BoxHeight,
PLFLT StartAngle,
PLFLT EndAngle);
__deprecated void ajGraphRectangleOnCurve(PLFLT xcentre, PLFLT ycentre,
PLFLT Radius,
PLFLT BoxHeight,
PLFLT StartAngle,
PLFLT EndAngle);
__deprecated void ajGraphPartCircle(PLFLT xcentre, PLFLT ycentre,
PLFLT Radius,
PLFLT StartAngle, PLFLT EndAngle);
__deprecated void ajGraphBox (PLFLT xx0, PLFLT yy0,PLFLT size);
__deprecated void ajGraphBoxFill (PLFLT xx0, PLFLT yy0, PLFLT size);
__deprecated void ajGraphRectFill (PLFLT xx0, PLFLT yy0,
PLFLT xx1, PLFLT yy1) ;
__deprecated void ajGraphRect (PLFLT xx0, PLFLT yy0,
PLFLT xx1, PLFLT yy1) ;
__deprecated void ajGraphLine (PLFLT xx1,PLFLT yy1,
PLFLT xx2,PLFLT yy2);
__deprecated void ajGraphCircle (PLFLT xcentre, PLFLT ycentre,
float radius);
__deprecated void ajGraphDia (PLFLT xx0, PLFLT yy0, PLFLT size);
__deprecated void ajGraphDiaFill (PLFLT xx0, PLFLT yy0, PLFLT size);
__deprecated void ajGraphPoly (ajuint n, PLFLT *x, PLFLT *y);
__deprecated void ajGraphPolyFill (ajuint n, PLFLT *x, PLFLT *y);
__deprecated void ajGraphLines (PLFLT *xx1,PLFLT *yy1,
PLFLT *xx2,PLFLT *yy2,
ajuint numoflines);
__deprecated void ajGraphTextLine (PLFLT xx1, PLFLT yy1,
PLFLT xx2, PLFLT yy2,
const char *text, PLFLT just);
__deprecated void ajGraphTri (PLFLT xx1, PLFLT yy1,
PLFLT xx2, PLFLT yy2,
PLFLT x3, PLFLT y3);
__deprecated void ajGraphTriFill (PLFLT xx1, PLFLT yy1,
PLFLT xx2, PLFLT yy2,
PLFLT x3, PLFLT y3);
__deprecated void ajGraphDots (PLFLT *xx1,PLFLT *yy1,
ajuint numofdots);
__deprecated void ajGraphSymbols( ajuint numofdots,
PLFLT *xx1,PLFLT *yy1,
ajuint symbol);
__deprecated void ajGraphText (PLFLT xx1, PLFLT yy1,
const char *text, PLFLT just);
__deprecated void ajGraphTextEnd (PLFLT xx1, PLFLT yy1,
const char *text);
__deprecated void ajGraphTextMid (PLFLT xx1, PLFLT yy1,
const char *text);
__deprecated void ajGraphTextStart (PLFLT xx1, PLFLT yy1,
const char *text);
__deprecated void ajGraphHoriBars (ajuint numofpoints, PLFLT *y,
PLFLT *xmin, PLFLT *xmax);
__deprecated void ajGraphVertBars (ajuint numofpoints, PLFLT *x,
PLFLT *ymin, PLFLT *ymax);
__deprecated void ajGraphSetBackBlack (void);
__deprecated void ajGraphSetBackWhite (void);
__deprecated void ajGraphColourBack (void);
__deprecated void ajGraphColourFore(void);
__deprecated ajint ajGraphSetFore (ajint colour);
__deprecated void ajGraphInit (const char *pgm,
ajint argc, char * const argv[]);
__deprecated void ajGraphInitPV(const char *pgm,
ajint argc, char * const argv[],
const char *package,
const char *packversion);
__deprecated void ajGraphLabelYRight (const char *text);
__deprecated void ajGraphSetOri(ajint ori);
__deprecated ajint ajGraphCheckColour (const AjPStr colour);
#endif
AJ_END_DECLS
#endif /* !AJGRAPH_H */
|