ajgraph.c
Old PLPLOT version function. Obsolete. Needed for EMBOSSWIN compilation
Synopsis
Prototype
PLFLT plstrlW (
PLFLT x,
PLFLT y,
PLFLT dx,
PLFLT dy,
const char* text
);
Input
| x: | (Input) | Undocumented |
| y: | (Input) | Undocumented |
| dx: | (Input) | Undocumented |
| dy: | (Input) | Undocumented |
| text: | (Input) | Undocumented |
Returns
Description
Old PLPLOT version function. Obsolete. Needed for EMBOSSWIN compilation
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Old PLPLOT version function. Obsolete. Needed for EMBOSSWIN compilation
Synopsis
Prototype
PLFLT plgchrW (
PLFLT x,
PLFLT y,
PLFLT dx,
PLFLT dy
);
Input
| x: | (Input) | Undocumented |
| y: | (Input) | Undocumented |
| dx: | (Input) | Undocumented |
| dy: | (Input) | Undocumented |
Returns
Description
Old PLPLOT version function. Obsolete. Needed for EMBOSSWIN compilation
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Old PLPLOT version function. Obsolete. Needed for EMBOSSWIN compilation
Synopsis
Prototype
void plxsfnam (
const char* fnam,
const char* ext
);
Input
| fnam: | (Input) | Undocumented |
| ext: | (Input) | Undocumented |
Returns
Description
Old PLPLOT version function. Obsolete. Needed for EMBOSSWIN compilation
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Old PLPLOT version function. Obsolete. Needed for EMBOSSWIN compilation
Synopsis
Prototype
void plxtrace (
FILE* outf
);
Input & Output
| outf: | (Modify) | Undocumented |
Returns
Description
Old PLPLOT version function. Obsolete. Needed for EMBOSSWIN compilation
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Old PLPLOT version function. Obsolete. Needed for EMBOSSWIN compilation
Synopsis
Prototype
void plxswin (
const char* window
);
Input
| window: | (Input) | Undocumented |
Returns
Description
Old PLPLOT version function. Obsolete. Needed for EMBOSSWIN compilation
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Old PLPLOT version function. Obsolete. Needed for EMBOSSWIN compilation
Synopsis
Prototype
int plfileinfo (
char* tmp
);
Output
Returns
Description
Old PLPLOT version function. Obsolete. Needed for EMBOSSWIN compilation
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set graph device
Synopsis
Prototype
void ajGraphSetDevice (
const AjPGraph thys
);
Input
| thys: | (Input) | Graph object with displaytype set |
Returns
Description
Set graph device
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
set BaseName and extension.
Synopsis
Prototype
void ajGraphSetName (
const AjPGraph thys
);
Input
| thys: | (Input) | Graph object. |
Returns
Description
set BaseName and extension.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Label current Plot.
Synopsis
Prototype
void ajGraphLabel (
const char* x,
const char* y,
const char* title,
const char* subtitle
);
Input
| x: | (Input) | text for x axis labelling. |
| y: | (Input) | text for y axis labelling. |
| title: | (Input) | text for title of plot. |
| subtitle: | (Input) | text for subtitle of plot. |
Returns
Description
Label current Plot.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set the current pen width.
Synopsis
Prototype
void ajGraphSetPenWidth (
float width
);
Input
| width: | (Input) | width for the pen. |
Returns
Description
Set the current pen width.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Open a window.
Synopsis
Prototype
void ajGraphOpenPlot (
AjPGraph thys,
ajint numofsets
);
Input
| numofsets: | (Input) | number of plots in set. |
Output
| thys: | (Output) | Graph object. |
Returns
Description
Open a window.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Open a window whose view is defined by x and y's min and max.
Synopsis
Prototype
void ajGraphOpenWin (
AjPGraph thys,
float xmin,
float xmax,
float ymin,
float ymax
);
Input
| xmin: | (Input) | minimum x value.(user coordinates) |
| xmax: | (Input) | maximum x value. |
| ymin: | (Input) | minimum y value. |
| ymax: | (Input) | maximum y value. |
Output
| thys: | (Output) | Graph object |
Returns
Description
Open a window whose view is defined by x and y's min and max.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Clear Screen if (X) or new page if plotter/postscript. Also pass a boolean
to state whether you want the current pen colour character sizes etc to
be reset or stay the same for the next page.
Synopsis
Prototype
void ajGraphNewPage (
AjBool resetdefaults
);
Input
| resetdefaults: | (Input) | reset page setting? |
Returns
Description
Clear Screen if (X) or new page if plotter/postscript. Also pass a boolean
to state whether you want the current pen colour character sizes etc to
be reset or stay the same for the next page.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Close current window.
Synopsis
Prototype
void ajGraphCloseWin (
void
);
Returns
Description
Close current window.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Open a window whose view is defined by the x's and y's min and max
values.
Synopsis
Prototype
void ajGraphOpen (
AjPGraph thys,
PLFLT xmin,
PLFLT xmax,
PLFLT ymin,
PLFLT ymax,
ajint flags
);
Input
| xmin: | (Input) | minimum x value.(user coordinates) |
| xmax: | (Input) | maximum x value. |
| ymin: | (Input) | minimum y value. |
| ymax: | (Input) | maximum y value. |
| flags: | (Input) | flag bit settings |
Output
| thys: | (Output) | Graph object |
Returns
Description
Open a window whose view is defined by the x's and y's min and max
values.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Label the right hand y axis.
Synopsis
Prototype
void ajGraphLabelYRight (
const char* text
);
Input
| text: | (Input) | text for label of right y axis. |
Returns
Description
Label the right hand y axis.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Close current Plot.
Synopsis
Prototype
void ajGraphClose (
void
);
Returns
Description
Close current Plot.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Initialize options for a graph object
Synopsis
Prototype
AjBool ajGraphSet (
AjPGraph thys,
const AjPStr type
);
Input
Input & Output
| thys: | (Modify) | Graph object |
Returns
Description
Initialize options for a graph object
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Initialize options for a graphxy object
Synopsis
Prototype
AjBool ajGraphxySet (
AjPGraph thys,
const AjPStr type
);
Input
Input & Output
| thys: | (Modify) | Graph object |
Returns
Description
Initialize options for a graphxy object
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Dump device options for a graph object
Synopsis
Prototype
void ajGraphDumpDevices (
void
);
Returns
Description
Dump device options for a graph object
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Writes debug messages to trace the device driver internals graph object.
Synopsis
Prototype
void ajGraphTraceInt (
const AjPGraph thys,
FILE* outf
);
Input
Input & Output
Returns
Description
Writes debug messages to trace the device driver internals graph object.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Writes debug messages to trace the contents of a graph object.
Synopsis
Prototype
void ajGraphTrace (
const AjPGraph thys
);
Input
Returns
Description
Writes debug messages to trace the contents of a graph object.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Writes debug messages to trace the contents of a graphdata object.
Synopsis
Prototype
void ajGraphPlpDataTrace (
const AjPGraphPlpData thys
);
Input
| thys: | (Input) | Graphdata object |
Returns
Description
Writes debug messages to trace the contents of a graphdata object.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Draw a circle.
Synopsis
Prototype
void ajGraphCircle (
PLFLT xcentre,
PLFLT ycentre,
float radius
);
Input
| xcentre: | (Input) | x coor for centre. |
| ycentre: | (Input) | y coor for centre. |
| radius: | (Input) | radius of the circle. |
Returns
Description
Draw a circle.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Draw a polygon and fill it in.
Synopsis
Prototype
void ajGraphPolyFill (
ajint n,
PLFLT* x,
PLFLT* y
);
Input
| n: | (Input) | number of points |
| x: | (Input) | x coord of points |
| y: | (Input) | y coord of points |
Returns
Description
Draw a polygon and fill it in.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Draw a polygon.
Synopsis
Prototype
void ajGraphPoly (
ajint n,
PLFLT* x,
PLFLT* y
);
Input
| n: | (Input) | number of points |
| x: | (Input) | x coord of points |
| y: | (Input) | y coord of points |
Returns
Description
Draw a polygon.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Draw a Triangle and fill it in.
Synopsis
Prototype
void ajGraphTriFill (
PLFLT x1,
PLFLT y1,
PLFLT x2,
PLFLT y2,
PLFLT x3,
PLFLT y3
);
Input
| x1: | (Input) | x1 coord of point 1. |
| y1: | (Input) | y1 coord of point 1. |
| x2: | (Input) | x2 coord of point 2. |
| y2: | (Input) | y2 coord of point 2. |
| x3: | (Input) | x3 coord of point 3. |
| y3: | (Input) | y3 coord of point 3. |
Returns
Description
Draw a Triangle and fill it in.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Draw a Triangle.
Synopsis
Prototype
void ajGraphTri (
PLFLT x1,
PLFLT y1,
PLFLT x2,
PLFLT y2,
PLFLT x3,
PLFLT y3
);
Input
| x1: | (Input) | x1 coord of point 1. |
| y1: | (Input) | y1 coord of point 1. |
| x2: | (Input) | x2 coord of point 2. |
| y2: | (Input) | y2 coord of point 2. |
| x3: | (Input) | x3 coord of point 3. |
| y3: | (Input) | y3 coord of point 3. |
Returns
Description
Draw a Triangle.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Draw a diamond to the plotter device at point x0,y0 size big and
fill it in.
Synopsis
Prototype
void ajGraphDiaFill (
PLFLT x0,
PLFLT y0,
PLFLT size
);
Input
| x0: | (Input) | x position to draw the diamond. |
| y0: | (Input) | y position to draw the diamond. |
| size: | (Input) | how big to draw the diamond. |
Returns
Description
Draw a diamond to the plotter device at point x0,y0 size big and
fill it in.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Draw a diamond to the plotter device at point x0,y0 size big.
Synopsis
Prototype
void ajGraphDia (
PLFLT x0,
PLFLT y0,
PLFLT size
);
Input
| x0: | (Input) | x position to draw the diamond. |
| y0: | (Input) | y position to draw the diamond. |
| size: | (Input) | how big to draw the diamond. |
Returns
Description
Draw a diamond to the plotter device at point x0,y0 size big.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Draw a box to the plotter device at point x0,y0 size big and
fill it in.
Synopsis
Prototype
void ajGraphBoxFill (
PLFLT x0,
PLFLT y0,
PLFLT size
);
Input
| x0: | (Input) | x position to draw the box. |
| y0: | (Input) | y position to draw the box. |
| size: | (Input) | how big to draw the box. |
Returns
Description
Draw a box to the plotter device at point x0,y0 size big and
fill it in.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Draw a box to the plotter device at point x0,y0 size big.
Synopsis
Prototype
void ajGraphBox (
PLFLT x0,
PLFLT y0,
PLFLT size
);
Input
| x0: | (Input) | x position to draw the box. |
| y0: | (Input) | y position to draw the box. |
| size: | (Input) | how big to draw the box. |
Returns
Description
Draw a box to the plotter device at point x0,y0 size big.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Draw a rectangle and fill it with the current pen colour/style.
Synopsis
Prototype
void ajGraphRectFill (
PLFLT x0,
PLFLT y0,
PLFLT x1,
PLFLT y1
);
Input
| x0: | (Input) | x0 coor. |
| y0: | (Input) | y0 coor. |
| x1: | (Input) | x1 coor. |
| y1: | (Input) | y1 coor. |
Returns
Description
Draw a rectangle and fill it with the current pen colour/style.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Draw a rectangle with the current pen colour/style.
Synopsis
Prototype
void ajGraphRect (
PLFLT x0,
PLFLT y0,
PLFLT x1,
PLFLT y1
);
Input
| x0: | (Input) | x0 coor. |
| y0: | (Input) | y0 coor. |
| x1: | (Input) | x1 coor. |
| y1: | (Input) | y1 coor. |
Returns
Description
Draw a rectangle with the current pen colour/style.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set the background colour to White.
Synopsis
Prototype
void ajGraphSetBackWhite (
void
);
Returns
Description
Set the background colour to White.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set the background colour to Black.
Synopsis
Prototype
void ajGraphSetBackBlack (
void
);
Returns
Description
Set the background colour to Black.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set the background colour to either Black or white depending on the
current settings.
Synopsis
Prototype
void ajGraphColourBack (
void
);
Returns
Description
Set the background colour to either Black or white depending on the
current settings.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set the foreground plotting colour using current stored colour.
Synopsis
Prototype
void ajGraphColourFore (
void
);
Returns
Description
Set the foreground plotting colour using current stored colour.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set the foreground plotting colour
Synopsis
Prototype
ajint ajGraphSetFore (
ajint colour
);
Input
| colour: | (Input) | colour to set drawing to. |
Returns
| ajint: | the previous colour. |
Description
Set the foreground plotting colour
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Find if the colour is on the list
Synopsis
Prototype
ajint ajGraphCheckColour (
const AjPStr colour
);
Input
| colour: | (Input) | colour to set drawing to. |
Returns
| ajint: | the colour number if found else -1. |
Description
Find if the colour is on the list
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Initialize a base colours array for sequence characters
Synopsis
Prototype
ajint* ajGraphGetBaseColour (
void
);
Returns
| ajint*: | Array of colours (see PLPLOT) |
Description
Initialize a base colours array for sequence characters
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Initialize a base colours array for a string of protein sequence characters
according to the following colour scheme designed by Toby Giibson (EMBL
Heidelberg) to show the chemical propoerties important in sequence
and structure alignment and to be clear to those with common forms
of colour blindness.
DE: Red (Acidic)
HKR: Blue (Basic)
NQ: Green (Amide)
AILV: Black (Hydrophobic Small)
FWY: Wheat (Hydrophobic Large)
ST: Cyan (Hydroxyl group)
CM: Yellow (Sulphur chemistry)
G: Grey (helix breaker I)
P: Violet (helix breaker II)
Synopsis
Prototype
ajint* ajGraphGetBaseColourProt (
const AjPStr codes
);
Input
| codes: | (Input) | Residue codes for each numbered position |
Returns
| ajint*: | Array of colours (see PLPLOT) |
Description
Initialize a base colours array for a string of protein sequence characters
according to the following colour scheme designed by Toby Giibson (EMBL
Heidelberg) to show the chemical propoerties important in sequence
and structure alignment and to be clear to those with common forms
of colour blindness.
DE: Red (Acidic)
HKR: Blue (Basic)
NQ: Green (Amide)
AILV: Black (Hydrophobic Small)
FWY: Wheat (Hydrophobic Large)
ST: Cyan (Hydroxyl group)
CM: Yellow (Sulphur chemistry)
G: Grey (helix breaker I)
P: Violet (helix breaker II)
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Initialize a base colours array for a string of nucleotide
sequence characters
Synopsis
Prototype
ajint* ajGraphGetBaseColourNuc (
const AjPStr codes
);
Input
| codes: | (Input) | Residue codes for each numbered position |
Returns
| ajint*: | Array of colours (see PLPLOT) |
Description
Initialize a base colours array for a string of nucleotide
sequence characters
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Get the char size.
Synopsis
Prototype
void ajGraphGetCharSize (
float* defheight,
float* currentheight
);
Input & Output
| defheight: | (Modify) | where to store the default char height |
| currentheight: | (Modify) | where to the current char height |
Returns
Description
Get the char size.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Get the Output Device Parameters
For graph data type, sets to zero.
Synopsis
Prototype
void ajGraphGetOut (
float* xp,
float* yp,
ajint* xleng,
ajint* yleng,
ajint* xoff,
ajint* yoff
);
Input & Output
| xp: | (Modify) | where to store the default char height |
| yp: | (Modify) | where to the current char height |
| xleng: | (Modify) | where to store the default char height |
| yleng: | (Modify) | where to the current char height |
| xoff: | (Modify) | where to store the default char height |
| yoff: | (Modify) | where to the current char height |
Returns
Description
Get the Output Device Parameters
For graph data type, sets to zero.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set graph orientation
Synopsis
Prototype
void ajGraphSetOri (
ajint ori
);
Input
| ori: | (Input) | orientation (landscape is zero, portrait is
any other value). |
Returns
Description
Set graph orientation
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Defines a plot environment. i.e. tells plplot whether the graph is boxed,
whether it has tick marks, whether it has labels etc. These should already
be set in the flags.
Synopsis
Prototype
void ajGraphPlenv (
float xmin,
float xmax,
float ymin,
float ymax,
ajint flags
);
Input
| xmin: | (Input) | X axis start |
| xmax: | (Input) | X axis end |
| ymin: | (Input) | Y axis start |
| ymax: | (Input) | Y axis end |
| flags: | (Input) | flag bit settings |
Returns
Description
Defines a plot environment. i.e. tells plplot whether the graph is boxed,
whether it has tick marks, whether it has labels etc. These should already
be set in the flags.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Return current foreground colour
Synopsis
Prototype
ajint ajGraphGetColour (
void
);
Returns
Description
Return current foreground colour
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Return plot subtitle
Synopsis
Prototype
const AjPStr ajGraphGetSubTitle (
const AjPGraph thys
);
Input
| thys: | (Input) | Graph object. |
Returns
Description
Return plot subtitle
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Return plot subtitle
Synopsis
Prototype
const char* ajGraphGetSubTitleC (
const AjPGraph thys
);
Input
| thys: | (Input) | Graph object. |
Returns
Description
Return plot subtitle
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Return plot title
Synopsis
Prototype
const AjPStr ajGraphGetTitle (
const AjPGraph thys
);
Input
| thys: | (Input) | Graph object. |
Returns
Description
Return plot title
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Return plot title
Synopsis
Prototype
const char* ajGraphGetTitleC (
const AjPGraph thys
);
Input
| thys: | (Input) | Graph object. |
Returns
Description
Return plot title
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Return plot x-axis title
Synopsis
Prototype
const AjPStr ajGraphGetXTitle (
const AjPGraph thys
);
Input
| thys: | (Input) | Graph object. |
Returns
| const AjPStr: | Title of x-axis |
Description
Return plot x-axis title
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Return plot x-axis title
Synopsis
Prototype
const char* ajGraphGetXTitleC (
const AjPGraph thys
);
Input
| thys: | (Input) | Graph object. |
Returns
| const char*: | Title of x-axis |
Description
Return plot x-axis title
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Return plot y-axis title
Synopsis
Prototype
const AjPStr ajGraphGetYTitle (
const AjPGraph thys
);
Input
| thys: | (Input) | Graph object. |
Returns
| const AjPStr: | Title of y-axis |
Description
Return plot y-axis title
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Return plot y-axis title
Synopsis
Prototype
const char* ajGraphGetYTitleC (
const AjPGraph thys
);
Input
| thys: | (Input) | Graph object. |
Returns
| const char*: | Title of y-axis |
Description
Return plot y-axis title
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set the line style.
Synopsis
Prototype
ajint ajGraphSetLineStyle (
ajint style
);
Input
| style: | (Input) | line style to set drawing to. |
Returns
| ajint: | the previous line style. |
Description
Set the line style.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set the Fill Pattern type.
Synopsis
Prototype
ajint ajGraphSetFillPat (
ajint style
);
Input
| style: | (Input) | line style to set drawing to. |
Returns
| ajint: | the previous line style. |
Description
Set the Fill Pattern type.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set the character size.
Synopsis
Prototype
float ajGraphSetCharSize (
float size
);
Input
| size: | (Input) | character size. |
Returns
| float: | the previous character size. |
Description
Set the character size.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Draw line between 2 points.
Synopsis
Prototype
void ajGraphLine (
PLFLT x1,
PLFLT y1,
PLFLT x2,
PLFLT y2
);
Input
| x1: | (Input) | x start position. |
| y1: | (Input) | y start position. |
| x2: | (Input) | x end position. |
| y2: | (Input) | y end position. |
Returns
Description
Draw line between 2 points.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Draw a set of lines.
Synopsis
Prototype
void ajGraphLines (
PLFLT* x1,
PLFLT* y1,
PLFLT* x2,
PLFLT* y2,
ajint numoflines
);
Input
| numoflines: | (Input) | The number of lines to be drawn. |
Input & Output
| x1: | (Modify) | x1 coord. |
| y1: | (Modify) | y1 coord. |
| x2: | (Modify) | x2 coord. |
| y2: | (Modify) | y2 coord. |
Returns
Description
Draw a set of lines.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Draw a set of dots.
Synopsis
Prototype
void ajGraphDots (
PLFLT* x1,
PLFLT* y1,
ajint numofdots
);
Input
| x1: | (Input) | x1 coord. |
| y1: | (Input) | y1 coord. |
| numofdots: | (Input) | The number of dots to be drawn. |
Returns
Description
Draw a set of dots.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Draw a set of dots.
Synopsis
Prototype
void ajGraphSymbols (
ajint numofdots,
PLFLT* x1,
PLFLT* y1,
ajint symbol
);
Input
| numofdots: | (Input) | Number of coordinates in x1 and x2. |
| x1: | (Input) | x1 coord. |
| y1: | (Input) | y1 coord. |
| symbol: | (Input) | Symbol code. |
Returns
Description
Draw a set of dots.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Draw text along a line.
Synopsis
Prototype
void ajGraphTextLine (
PLFLT x1,
PLFLT y1,
PLFLT x2,
PLFLT y2,
const char* text,
PLFLT just
);
Input
| x1: | (Input) | x1 coor. |
| y1: | (Input) | y1 coor. |
| x2: | (Input) | x2 coor. |
| y2: | (Input) | y2 coor. |
| text: | (Input) | The text to be displayed. |
| just: | (Input) | justification of the string.
(0=left,1=right,0.5=middle etc) |
Returns
Description
Draw text along a line.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Draw text, positioning with respect to (x1,y1) by just.
Synopsis
Prototype
void ajGraphText (
PLFLT x1,
PLFLT y1,
const char* text,
PLFLT just
);
Input
| x1: | (Input) | x1 coor. |
| y1: | (Input) | y1 coor. |
| text: | (Input) | The text to be displayed. |
| just: | (Input) | justification of the string.
(0=left,1=right,0.5=middle etc) |
Returns
Description
Draw text, positioning with respect to (x1,y1) by just.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Draw text starting at position (x1,y1)
Synopsis
Prototype
void ajGraphTextStart (
PLFLT x1,
PLFLT y1,
const char* text
);
Input
| x1: | (Input) | x1 coor. |
| y1: | (Input) | y1 coor. |
| text: | (Input) | The text to be displayed. |
Returns
Description
Draw text starting at position (x1,y1)
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Draw text ending at position (x1,y1)
Synopsis
Prototype
void ajGraphTextEnd (
PLFLT x1,
PLFLT y1,
const char* text
);
Input
| x1: | (Input) | x1 coor. |
| y1: | (Input) | y1 coor. |
| text: | (Input) | The text to be displayed. |
Returns
Description
Draw text ending at position (x1,y1)
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Draw text with Mid point of text at (x1,y1).
For graph data type, writes directly.
Synopsis
Prototype
void ajGraphTextMid (
PLFLT x1,
PLFLT y1,
const char* text
);
Input
| x1: | (Input) | x1 coor. |
| y1: | (Input) | y1 coor. |
| text: | (Input) | The text to be displayed. |
Returns
Description
Draw text with Mid point of text at (x1,y1).
For graph data type, writes directly.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Draw vertical Error Bars.
Synopsis
Prototype
void ajGraphVertBars (
ajint numofpoints,
PLFLT* x,
PLFLT* ymin,
PLFLT* ymax
);
Input
| numofpoints: | (Input) | number of error bars to be drawn. |
| x: | (Input) | x positions to draw at. |
| ymin: | (Input) | y positions to start at. |
| ymax: | (Input) | y positions to end at. |
Returns
Description
Draw vertical Error Bars.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Draw Horizontal Error Bars.
Synopsis
Prototype
void ajGraphHoriBars (
ajint numofpoints,
PLFLT* y,
PLFLT* xmin,
PLFLT* xmax
);
Input
| numofpoints: | (Input) | number of error bars to be drawn. |
| y: | (Input) | y positions to draw at. |
| xmin: | (Input) | x positions to start at. |
| xmax: | (Input) | x positions to end at. |
Returns
Description
Draw Horizontal Error Bars.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Creates a graph and define default values based on a sequence.
Existing titles and other data are unchanged
Synopsis
Prototype
void ajGraphInitSeq (
AjPGraph thys,
const AjPSeq seq
);
Input
Input & Output
Returns
Description
Creates a graph and define default values based on a sequence.
Existing titles and other data are unchanged
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set the name of the output file. Only used later if the device
plotter is capable of postscript output. ps and cps.
Synopsis
Prototype
void ajGraphSetOut (
AjPGraph thys,
const AjPStr txt
);
Input
| txt: | (Input) | Name of the file. |
Input & Output
| thys: | (Modify) | Graph structure to write file name too. |
Returns
Description
Set the name of the output file. Only used later if the device
plotter is capable of postscript output. ps and cps.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set the name of the output file. Only used later if the device
plotter is capable of postscript output. ps and cps.
Synopsis
Prototype
void ajGraphSetOutC (
AjPGraph thys,
const char* txt
);
Input
| txt: | (Input) | Name of the file. |
Input & Output
| thys: | (Modify) | Graph structure to write file name to. |
Returns
Description
Set the name of the output file. Only used later if the device
plotter is capable of postscript output. ps and cps.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set the directory of the output file. Only used later if the device
plotter is capable of postscript output. ps and cps.
Synopsis
Prototype
void ajGraphSetDir (
AjPGraph thys,
const AjPStr txt
);
Input
| txt: | (Input) | Name of the file. |
Input & Output
| thys: | (Modify) | Graph structure to write file name too. |
Returns
Description
Set the directory of the output file. Only used later if the device
plotter is capable of postscript output. ps and cps.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set the line type for this graph.
Synopsis
Prototype
void ajGraphPlpDataSetLineType (
AjPGraphPlpData graphdata,
ajint type
);
Input
| type: | (Input) | Set the line type. |
Input & Output
| graphdata: | (Modify) | Graph structure to store info in. |
Returns
Description
Set the line type for this graph.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set the start position for X in the graph.
Synopsis
Prototype
void ajGraphxySetXStart (
AjPGraph thys,
float val
);
Input
| val: | (Input) | The start value for x graph coord. |
Input & Output
| thys: | (Modify) | Graph structure to store info in. |
Returns
Description
Set the start position for X in the graph.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set the end position for X in the graph.
Synopsis
Prototype
void ajGraphxySetXEnd (
AjPGraph thys,
float val
);
Input
| val: | (Input) | The end value for x graph coord |
Input & Output
| thys: | (Modify) | Graph structure to store info in. |
Returns
Description
Set the end position for X in the graph.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set the start position for Y in the graph.
Synopsis
Prototype
void ajGraphxySetYStart (
AjPGraph thys,
float val
);
Input
| val: | (Input) | The end value for y graph coord. |
Input & Output
| thys: | (Modify) | Graph structure to store info in. |
Returns
Description
Set the start position for Y in the graph.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set the end position for Y in the graph.
Synopsis
Prototype
void ajGraphxySetYEnd (
AjPGraph thys,
float val
);
Input
| val: | (Input) | The start value for y graph coord. |
Input & Output
| thys: | (Modify) | Graph structure to store info in. |
Returns
Description
Set the end position for Y in the graph.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set the colour for the plot on one graph.
Synopsis
Prototype
void ajGraphPlpDataSetColour (
AjPGraphPlpData graphdata,
ajint colour
);
Input
| colour: | (Input) | colour for this plot. |
Input & Output
| graphdata: | (Modify) | Graph structure to store info in. |
Returns
Description
Set the colour for the plot on one graph.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set the title for the Y axis for multiple plots on one graph.
Synopsis
Prototype
void ajGraphSetYTitle (
AjPGraph thys,
const AjPStr title
);
Input
| title: | (Input) | title for the y axis. |
Input & Output
| thys: | (Modify) | Graph structure to store info in. |
Returns
Description
Set the title for the Y axis for multiple plots on one graph.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set the title for the Y axis for multiple plots on one graph.
Synopsis
Prototype
void ajGraphSetYTitleC (
AjPGraph thys,
const char* title
);
Input
| title: | (Input) | title for the y axis. |
Input & Output
| thys: | (Modify) | Graph structure to store info in. |
Returns
Description
Set the title for the Y axis for multiple plots on one graph.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set the title for the X axis for multiple plots on one graph.
Synopsis
Prototype
void ajGraphSetXTitle (
AjPGraph thys,
const AjPStr title
);
Input
| title: | (Input) | title for the x axis. |
Input & Output
| thys: | (Modify) | Graph structure to store info in. |
Returns
Description
Set the title for the X axis for multiple plots on one graph.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set the title for the X axis for multiple plot on one graph.
Synopsis
Prototype
void ajGraphSetXTitleC (
AjPGraph thys,
const char* title
);
Input
| title: | (Input) | title for the x axis. |
Input & Output
| thys: | (Modify) | Graph structure to store info in. |
Returns
Description
Set the title for the X axis for multiple plot on one graph.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set the graph title.
Synopsis
Prototype
void ajGraphSetTitle (
AjPGraph thys,
const AjPStr title
);
Input
Input & Output
| thys: | (Modify) | Graph structure to store info in. |
Returns
Description
Set the graph title.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set the graph Title.
Synopsis
Prototype
void ajGraphSetTitleC (
AjPGraph thys,
const char* title
);
Input
Input & Output
| thys: | (Modify) | Graph structure to store info in. |
Returns
Description
Set the graph Title.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set the title for the Y axis.
Synopsis
Prototype
void ajGraphSetSubTitle (
AjPGraph thys,
const AjPStr title
);
Input
Input & Output
| thys: | (Modify) | Graph structure to store info in. |
Returns
Description
Set the title for the Y axis.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set the graph subtitle.
Synopsis
Prototype
void ajGraphSetSubTitleC (
AjPGraph thys,
const char* title
);
Input
Input & Output
| thys: | (Modify) | Graph structure to store info in. |
Returns
Description
Set the graph subtitle.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set the title for the Y axis.
Synopsis
Prototype
void ajGraphPlpDataSetYTitle (
AjPGraphPlpData graphdata,
const AjPStr title
);
Input
| title: | (Input) | title for the Y axis. |
Input & Output
| graphdata: | (Modify) | Graph structure to store info in. |
Returns
Description
Set the title for the Y axis.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set the title for the Y axis.
Synopsis
Prototype
void ajGraphPlpDataSetYTitleC (
AjPGraphPlpData graphdata,
const char* title
);
Input
| title: | (Input) | title for the Y axis. |
Input & Output
| graphdata: | (Modify) | Graph structure to store info in. |
Returns
Description
Set the title for the Y axis.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set the title for the X axis.
Synopsis
Prototype
void ajGraphPlpDataSetXTitle (
AjPGraphPlpData graphdata,
const AjPStr title
);
Input
| title: | (Input) | title for the X axis. |
Input & Output
| graphdata: | (Modify) | Graph structure to store info in. |
Returns
Description
Set the title for the X axis.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set the title for the X axis.
Synopsis
Prototype
void ajGraphPlpDataSetXTitleC (
AjPGraphPlpData graphdata,
const char* title
);
Input
| title: | (Input) | title for the X axis. |
Input & Output
| graphdata: | (Modify) | Graph structure to store info in. |
Returns
Description
Set the title for the X axis.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Destructor for a graph object
Synopsis
Prototype
void ajGraphxyDel (
AjPGraph* pthis
);
Output
| pthis: | (Output) | Graph structure to store info in. |
Returns
Description
Destructor for a graph object
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Creates a new empty graph
Synopsis
Prototype
AjPGraphPlpData ajGraphPlpDataNew (
void
);
Returns
| AjPGraphPlpData: | New empty graph |
Description
Creates a new empty graph
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Adds (x,y) data points defined in two floating point arrays
Synopsis
Prototype
void ajGraphPlpDataSetXY (
AjPGraphPlpData graphdata,
const float* x,
const float* y
);
Input
| x: | (Input) | X coordinates |
| y: | (Input) | Y coordinates |
Input & Output
| graphdata: | (Modify) | Graph object |
Returns
Description
Adds (x,y) data points defined in two floating point arrays
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Adds (x,y) data points defined by an x-axis start and increment
and a floating point array of y-axis values.
Synopsis
Prototype
void ajGraphPlpDataCalcXY (
AjPGraphPlpData graphdata,
ajint numofpoints,
float start,
float incr,
const float* y
);
Input
| numofpoints: | (Input) | Number of points in array |
| start: | (Input) | Start position |
| incr: | (Input) | Increment |
| y: | (Input) | Y coordinates |
Input & Output
| graphdata: | (Modify) | Graph object |
Returns
Description
Adds (x,y) data points defined by an x-axis start and increment
and a floating point array of y-axis values.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Sets the X axis range with integers
Synopsis
Prototype
void ajGraphxySetXRangeII (
AjPGraph thys,
ajint start,
ajint end
);
Input
| start: | (Input) | start position |
| end: | (Input) | end position |
Input & Output
Returns
Description
Sets the X axis range with integers
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Sets the Y axis range with integers
Synopsis
Prototype
void ajGraphxySetYRangeII (
AjPGraph thys,
ajint start,
ajint end
);
Input
| start: | (Input) | start position |
| end: | (Input) | end position |
Input & Output
Returns
Description
Sets the Y axis range with integers
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Create and initialise the data structure for the graph with a defined
number of data points.
Synopsis
Prototype
AjPGraphPlpData ajGraphPlpDataNewI (
ajint numofpoints
);
Input
| numofpoints: | (Input) | Number of points |
Returns
| AjPGraphPlpData: | Pointer to new graph structure. |
Description
Create and initialise the data structure for the graph with a defined
number of data points.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Add another graph structure to the multiple graph structure.
The graphdata now belongs to the graph - do not delete it while
the graph is using it.
Synopsis
Prototype
ajint ajGraphDataAdd (
AjPGraph thys,
AjPGraphPlpData graphdata
);
Input & Output
| thys: | (Modify) | multiple graph structure. |
| graphdata: | (Modify) | graph to be added. |
Returns
| ajint: | 1 if graph added successfully else 0; |
Description
Add another graph structure to the multiple graph structure.
The graphdata now belongs to the graph - do not delete it while
the graph is using it.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Replace graph structure into the multiple graph structure.
The graphdata now belongs to the graph - do not delete it while
the graph is using it.
Synopsis
Prototype
ajint ajGraphDataReplace (
AjPGraph thys,
AjPGraphPlpData graphdata
);
Input & Output
| thys: | (Modify) | multiple graph structure. |
| graphdata: | (Modify) | graph to be added. |
Returns
| ajint: | 1 if graph added successfully else 0; |
Description
Replace graph structure into the multiple graph structure.
The graphdata now belongs to the graph - do not delete it while
the graph is using it.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Create a structure to hold a general graph.
Synopsis
Prototype
AjPGraph ajGraphNew (
void
);
Returns
| AjPGraph: | multiple graph structure. |
Description
Create a structure to hold a general graph.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Create a structure to hold a number of graphs.
Synopsis
Prototype
AjPGraph ajGraphxyNewI (
ajint numsets
);
Input
| numsets: | (Input) | maximum number of graphs that can stored. |
Returns
| AjPGraph: | multiple graph structure. |
Description
Create a structure to hold a number of graphs.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Create a structure to hold a number of graphs.
Synopsis
Prototype
void ajGraphSetMulti (
AjPGraph thys,
ajint numsets
);
Input
| numsets: | (Input) | maximum number of graphs that can stored. |
Output
| thys: | (Output) | Graph structure to store info in. |
Returns
Description
Create a structure to hold a number of graphs.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set the title.
Synopsis
Prototype
void ajGraphPlpDataSetTitle (
AjPGraphPlpData graphdata,
const AjPStr title
);
Input
Input & Output
| graphdata: | (Modify) | Graph structure to store info in. |
Returns
Description
Set the title.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set the title.
Synopsis
Prototype
void ajGraphPlpDataSetTitleC (
AjPGraphPlpData graphdata,
const char* title
);
Input
Input & Output
| graphdata: | (Modify) | Graph structure to store info in. |
Returns
Description
Set the title.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set the Subtitle.
Synopsis
Prototype
void ajGraphPlpDataSetSubTitle (
AjPGraphPlpData graphdata,
const AjPStr title
);
Input
Input & Output
| graphdata: | (Modify) | Graph structure to store info in. |
Returns
Description
Set the Subtitle.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set the subtitle.
Synopsis
Prototype
void ajGraphPlpDataSetSubTitleC (
AjPGraphPlpData graphdata,
const char* title
);
Input
Input & Output
| graphdata: | (Modify) | Graph structure to store info in. |
Returns
Description
Set the subtitle.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set the flags for the graph to add or subract "flag" depending on istrue
Synopsis
Prototype
void ajGraphSetFlag (
AjPGraph thys,
ajint flag,
AjBool istrue
);
Input
| flag: | (Input) | flag to be set. |
| istrue: | (Input) | whether to set the flag or remove it. |
Input & Output
| thys: | (Modify) | graph to have flags altered. |
Returns
Description
Set the flags for the graph to add or subract "flag" depending on istrue
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set whether the graphs should lay on top of each other.
Synopsis
Prototype
void ajGraphxySetOverLap (
AjPGraph thys,
AjBool overlap
);
Input
| overlap: | (Input) | if true overlap else do not. |
Input & Output
| thys: | (Modify) | Multiple graph object |
Returns
Description
Set whether the graphs should lay on top of each other.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set whether the graphs should enable gaps.
Synopsis
Prototype
void ajGraphxySetGaps (
AjPGraph thys,
AjBool overlap
);
Input
| overlap: | (Input) | if true allowgaps else do not. |
Input & Output
| thys: | (Modify) | Multiple graph object |
Returns
Description
Set whether the graphs should enable gaps.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set whether the graph is to display a bottom x axis.
Synopsis
Prototype
void ajGraphxySetXBottom (
AjPGraph thys,
AjBool set
);
Input
| set: | (Input) | whether to set or turn off. |
Input & Output
| thys: | (Modify) | graph to have flag altered |
Returns
Description
Set whether the graph is to display a bottom x axis.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set whether the graph is to display the left X axis at the top.
Synopsis
Prototype
void ajGraphxySetXTop (
AjPGraph thys,
AjBool set
);
Input
| set: | (Input) | whether to set or turn off. |
Input & Output
| thys: | (Modify) | graph to have flag altered |
Returns
Description
Set whether the graph is to display the left X axis at the top.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set the graph is to display a right hand Y axis.
Synopsis
Prototype
void ajGraphxySetYRight (
AjPGraph thys,
AjBool set
);
Input
| set: | (Input) | whether to set or turn off. |
Input & Output
| thys: | (Modify) | graph to have flag altered |
Returns
Description
Set the graph is to display a right hand Y axis.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set whether the graph is to display the left Y axis.
Synopsis
Prototype
void ajGraphxySetYLeft (
AjPGraph thys,
AjBool set
);
Input
| set: | (Input) | whether to set or turn off. |
Input & Output
| thys: | (Modify) | graph to have flag altered |
Returns
Description
Set whether the graph is to display the left Y axis.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set whether the graph is to display tick marks on the x axis.
Synopsis
Prototype
void ajGraphxySetXTick (
AjPGraph thys,
AjBool set
);
Input
| set: | (Input) | whether to set or turn off. |
Input & Output
| thys: | (Modify) | graph to have flag altered |
Returns
Description
Set whether the graph is to display tick marks on the x axis.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set the graph is to display tick marks on the y axis.
Synopsis
Prototype
void ajGraphxySetYTick (
AjPGraph thys,
AjBool set
);
Input
| set: | (Input) | whether to set or turn off. |
Input & Output
| thys: | (Modify) | graph to have flag altered |
Returns
Description
Set the graph is to display tick marks on the y axis.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set whether the graph is to label the x axis.
Synopsis
Prototype
void ajGraphxySetXLabel (
AjPGraph thys,
AjBool set
);
Input
| set: | (Input) | whether to set or turn off. |
Input & Output
| thys: | (Modify) | graph to have flag altered |
Returns
Description
Set whether the graph is to label the x axis.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set whether the graph is to label the y axis.
Synopsis
Prototype
void ajGraphxySetYLabel (
AjPGraph thys,
AjBool set
);
Input
| set: | (Input) | whether to set or turn off. |
Input & Output
| thys: | (Modify) | graph to have flag altered |
Returns
Description
Set whether the graph is to label the y axis.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set whether the graph is to display the title.
Synopsis
Prototype
void ajGraphSetTitleDo (
AjPGraph thys,
AjBool set
);
Input
| set: | (Input) | whether to set or turn off. |
Input & Output
| thys: | (Modify) | graph to have flag altered |
Returns
Description
Set whether the graph is to display the title.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set whether the graph is to display the subtitle.
Synopsis
Prototype
void ajGraphSetSubTitleDo (
AjPGraph thys,
AjBool set
);
Input
| set: | (Input) | whether to set or turn off. |
Input & Output
| thys: | (Modify) | graph to have flag altered |
Returns
Description
Set whether the graph is to display the subtitle.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set the graph to draw circles at the points.
Synopsis
Prototype
void ajGraphxySetCirclePoints (
AjPGraph thys,
AjBool set
);
Input
| set: | (Input) | whether to set or turn off. |
Input & Output
| thys: | (Modify) | graph to have flag altered |
Returns
Description
Set the graph to draw circles at the points.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set the graph to draw lines between the points.
Synopsis
Prototype
void ajGraphxySetJoinPoints (
AjPGraph thys,
AjBool set
);
Input
| set: | (Input) | whether to set or turn off. |
Input & Output
| thys: | (Modify) | graph to have flag altered |
Returns
Description
Set the graph to draw lines between the points.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set whether the graph is to display the labels on the top x axis.
Synopsis
Prototype
void ajGraphxySetXLabelTop (
AjPGraph thys,
AjBool set
);
Input
| set: | (Input) | whether to set or turn off. |
Input & Output
| thys: | (Modify) | graph to have flag altered |
Returns
Description
Set whether the graph is to display the labels on the top x axis.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set whether the graph is to display the labels on the left hand axis.
Synopsis
Prototype
void ajGraphxySetYLabelLeft (
AjPGraph thys,
AjBool set
);
Input
| set: | (Input) | whether to set or turn off. |
Input & Output
| thys: | (Modify) | graph to have flag altered |
Returns
Description
Set whether the graph is to display the labels on the left hand axis.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set whether the graph is to display the tick marks inside the plot on
the x axis.
Synopsis
Prototype
void ajGraphxySetXInvTicks (
AjPGraph thys,
AjBool set
);
Input
| set: | (Input) | whether to set or turn off. |
Input & Output
| thys: | (Modify) | graph to have flag altered |
Returns
Description
Set whether the graph is to display the tick marks inside the plot on
the x axis.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set whether the graph is to display the tick marks inside the plot
on the y axis.
Synopsis
Prototype
void ajGraphxySetYInvTicks (
AjPGraph thys,
AjBool set
);
Input
| set: | (Input) | whether to set or turn off. |
Input & Output
| thys: | (Modify) | graph to have flag altered |
Returns
Description
Set whether the graph is to display the tick marks inside the plot
on the y axis.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set whether the graph is to grid the tick marks on the x axis.
Synopsis
Prototype
void ajGraphxySetXGrid (
AjPGraph thys,
AjBool set
);
Input
| set: | (Input) | whether to set or turn off. |
Input & Output
| thys: | (Modify) | graph to have flag altered |
Returns
Description
Set whether the graph is to grid the tick marks on the x axis.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set whether the graph is to grid the tick marks on the x axis.
Synopsis
Prototype
void ajGraphxySetYGrid (
AjPGraph thys,
AjBool set
);
Input
| set: | (Input) | whether to set or turn off. |
Input & Output
| thys: | (Modify) | graph to have flag altered |
Returns
Description
Set whether the graph is to grid the tick marks on the x axis.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set the max and min of the data points for all graphs.
Synopsis
Prototype
void ajGraphxySetMaxMin (
AjPGraph thys,
float xmin,
float xmax,
float ymin,
float ymax
);
Input
| xmin: | (Input) | x min. |
| xmax: | (Input) | x max. |
| ymin: | (Input) | y min. |
| ymax: | (Input) | y max. |
Input & Output
| thys: | (Modify) | multiple graph structure. |
Returns
Description
Set the max and min of the data points for all graphs.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set the max and min of the data points you wish to display.
Synopsis
Prototype
void ajGraphPlpDataSetMaxMin (
AjPGraphPlpData graphdata,
float xmin,
float xmax,
float ymin,
float ymax
);
Input
| xmin: | (Input) | x min. |
| xmax: | (Input) | x max. |
| ymin: | (Input) | y min. |
| ymax: | (Input) | y max. |
Input & Output
| graphdata: | (Modify) | multiple graph structure. |
Returns
Description
Set the max and min of the data points you wish to display.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Get the max and min of the data points you wish to display.
Synopsis
Prototype
void ajGraphArrayMaxMin (
const float* array,
ajint npoints,
float* min,
float* max
);
Input
| array: | (Input) | array |
| npoints: | (Input) | Number of data points |
Output
| min: | (Output) | min. |
| max: | (Output) | max. |
Returns
Description
Get the max and min of the data points you wish to display.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set the scale max and min of the data points you wish to display.
Synopsis
Prototype
void ajGraphPlpDataSetMaxima (
AjPGraphPlpData graphdata,
float xmin,
float xmax,
float ymin,
float ymax
);
Input
| xmin: | (Input) | true x min. |
| xmax: | (Input) | true x max. |
| ymin: | (Input) | true y min. |
| ymax: | (Input) | true y max. |
Input & Output
| graphdata: | (Modify) | multiple graph structure. |
Returns
Description
Set the scale max and min of the data points you wish to display.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Set the type of the graph for data output.
Synopsis
Prototype
void ajGraphPlpDataSetTypeC (
AjPGraphPlpData graphdata,
const char* type
);
Input
| type: | (Input) | Type e.g. "2D Plot", "Histogram". |
Input & Output
| graphdata: | (Modify) | multiple graph structure. |
Returns
Description
Set the type of the graph for data output.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Calculate the max and min of the data points and store them.
Synopsis
Prototype
void ajGraphxyCheckMaxMin (
AjPGraph thys
);
Input & Output
| thys: | (Modify) | multiple graph structure. |
Returns
Description
Calculate the max and min of the data points and store them.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
A general routine for drawing graphs.
Synopsis
Prototype
void ajGraphxyDisplay (
AjPGraph thys,
AjBool closeit
);
Input
| closeit: | (Input) | Whether to close graph at the end. |
Input & Output
| thys: | (Modify) | Multiple graph pointer. |
Returns
Description
A general routine for drawing graphs.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Add a Rectangle to be drawn when the graph is plotted, fill states whether
the rectangle should be filled in.
Synopsis
Prototype
void ajGraphAddRect (
AjPGraph thys,
float x1,
float y1,
float x2,
float y2,
ajint colour,
ajint fill
);
Input
| x1: | (Input) | Start x coordinate |
| y1: | (Input) | Start y coordinate |
| x2: | (Input) | End x coordinate |
| y2: | (Input) | End y coordinate |
| colour: | (Input) | Colour code (see PLPLOT) |
| fill: | (Input) | Fill code (see PLPLOT) |
Input & Output
| thys: | (Modify) | Graph object |
Returns
Description
Add a Rectangle to be drawn when the graph is plotted, fill states whether
the rectangle should be filled in.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Add text to be drawn when the graph is plotted.
Synopsis
Prototype
void ajGraphAddText (
AjPGraph thys,
float x1,
float y1,
ajint colour,
const char* text
);
Input
| x1: | (Input) | Start x position |