ajgraph.c
Datatypes: none AjPGraph AjPGraphdata none
Graphics internals
Sections: modifiers Base colours Queries Drawing Calculations unused exit
Controlling the internals
Functions: ajGraphicsClose ajGraphicsCloseWin ajGraphicsPlenv ajGraphicsResetBgcolour ajGraphicsResetFgcolour ajGraphicsSetBgcolourBlack ajGraphicsSetBgcolourWhite ajGraphicsSetCharscale ajGraphicsSetCharsize ajGraphicsSetDefcharsize ajGraphicsSetDevice ajGraphicsSetFgcolour ajGraphicsSetFilename ajGraphicsSetFillpat ajGraphicsSetLabelsC ajGraphicsSetLabelsS ajGraphicsSetLinestyle ajGraphicsSetPagesize ajGraphicsSetPenwidth ajGraphicsSetPortrait ajGraphicsSetRlabelC ajGraphicsSetRlabelS
Close current Plot.
Synopsis
Prototype
void ajGraphicsClose (
void
);
Type | Name | Read/Write | Description |
void | | RETURN | |
Returns
Description
Close current Plot.
See Also
See other functions in this section
Availability
In release 6.4.0
Close current window Plot
Synopsis
Prototype
void ajGraphicsCloseWin (
void
);
Type | Name | Read/Write | Description |
void | | RETURN | |
Returns
Description
Close current window Plot
See Also
See other functions in this section
Availability
In release 6.4.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 ajGraphicsPlenv (
float xmin,
float xmax,
float ymin,
float ymax,
ajint flags
);
Type | Name | Read/Write | Description |
float | xmin | Input | X axis start |
float | xmax | Input | X axis end |
float | ymin | Input | Y axis start |
float | ymax | Input | Y axis end |
ajint | flags | Input | flag bit settings |
void | | RETURN | |
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.
See Also
See other functions in this section
Availability
In release 6.4.0
Reset the background colour to either black or white depending on the
current settings.
Synopsis
Prototype
void ajGraphicsResetBgcolour (
void
);
Type | Name | Read/Write | Description |
void | | RETURN | |
Returns
Description
Reset the background colour to either black or white depending on the
current settings.
See Also
See other functions in this section
Availability
In release 6.4.0
Reset the foreground plotting colour using current stored colour.
Synopsis
Prototype
void ajGraphicsResetFgcolour (
void
);
Type | Name | Read/Write | Description |
void | | RETURN | |
Returns
Description
Reset the foreground plotting colour using current stored colour.
See Also
See other functions in this section
Availability
In release 6.4.0
Set the background colour to black
Synopsis
Prototype
void ajGraphicsSetBgcolourBlack (
void
);
Type | Name | Read/Write | Description |
void | | RETURN | |
Returns
Description
Set the background colour to black
See Also
See other functions in this section
Availability
In release 6.4.0
Set the background colour to white (the default colour)
Synopsis
Prototype
void ajGraphicsSetBgcolourWhite (
void
);
Type | Name | Read/Write | Description |
void | | RETURN | |
Returns
Description
Set the background colour to white (the default colour)
See Also
See other functions in this section
Availability
In release 6.4.0
Set the character scale factor
Synopsis
Prototype
float ajGraphicsSetCharscale (
float scale
);
Type | Name | Read/Write | Description |
float | scale | Input | character scale. |
float | | RETURN | the previous character scale factor. |
Input
scale: | (Input) | character scale. |
Returns
float: | the previous character scale factor. |
Description
Set the character scale factor
See Also
See other functions in this section
Availability
In release 6.4.0
Set the character size factor
Synopsis
Prototype
float ajGraphicsSetCharsize (
float size
);
Type | Name | Read/Write | Description |
float | size | Input | character size. |
float | | RETURN | the previous character size factor. |
Input
size: | (Input) | character size. |
Returns
float: | the previous character size factor. |
Description
Set the character size factor
See Also
See other functions in this section
Availability
In release 6.4.0
Set the default character size in mm.
Synopsis
Prototype
float ajGraphicsSetDefcharsize (
float size
);
Type | Name | Read/Write | Description |
float | size | Input | character size in mm. |
float | | RETURN | the previous character size in mm. |
Input
size: | (Input) | character size in mm. |
Returns
float: | the previous character size in mm. |
Description
Set the default character size in mm.
See Also
See other functions in this section
Availability
In release 6.4.0
Set internal graph device to that selected for a graph object
Synopsis
Prototype
void ajGraphicsSetDevice (
const AjPGraph graph
);
Type | Name | Read/Write | Description |
const AjPGraph | graph | Input | Graph object with display type set |
void | | RETURN | |
Input
graph: | (Input) | Graph object with display type set |
Returns
Description
Set internal graph device to that selected for a graph object
See Also
See other functions in this section
Availability
In release 6.4.0
Set the foreground plotting colour
Synopsis
Prototype
ajint ajGraphicsSetFgcolour (
ajint colour
);
Type | Name | Read/Write | Description |
ajint | colour | Input | colour to set drawing to. |
ajint | | RETURN | the previous colour. |
Input
colour: | (Input) | colour to set drawing to. |
Returns
ajint: | the previous colour. |
Description
Set the foreground plotting colour
See Also
See other functions in this section
Availability
In release 6.4.0
set BaseName and extension.
Synopsis
Prototype
void ajGraphicsSetFilename (
const AjPGraph graph
);
Type | Name | Read/Write | Description |
const AjPGraph | graph | Input | Graph object. |
void | | RETURN | |
Input
graph: | (Input) | Graph object. |
Returns
Description
set BaseName and extension.
See Also
See other functions in this section
Availability
In release 6.4.0
Set the Fill Pattern type.
Synopsis
Prototype
ajint ajGraphicsSetFillpat (
ajint patstyle
);
Type | Name | Read/Write | Description |
ajint | patstyle | Input | line style to set drawing to. |
ajint | | RETURN | the previous line style. |
Input
patstyle: | (Input) | line style to set drawing to. |
Returns
ajint: | the previous line style. |
Description
Set the Fill Pattern type.
See Also
See other functions in this section
Availability
In release 6.4.0
Label current Plot.
Synopsis
Prototype
void ajGraphicsSetLabelsC (
const char* x,
const char* y,
const char* title,
const char* subtitle
);
Type | Name | Read/Write | Description |
const char* | x | Input | text for x axis labelling. |
const char* | y | Input | text for y axis labelling. |
const char* | title | Input | text for title of plot. |
const char* | subtitle | Input | text for subtitle of plot. |
void | | RETURN | |
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.
See Also
See other functions in this section
Availability
In release 6.4.0
Label current Plot.
Synopsis
Prototype
void ajGraphicsSetLabelsS (
const AjPStr strx,
const AjPStr stry,
const AjPStr strtitle,
const AjPStr strsubtitle
);
Type | Name | Read/Write | Description |
const AjPStr | strx | Input | text for x axis labelling. |
const AjPStr | stry | Input | text for y axis labelling. |
const AjPStr | strtitle | Input | text for title of plot. |
const AjPStr | strsubtitle | Input | text for subtitle of plot. |
void | | RETURN | |
Input
strx: | (Input) | text for x axis labelling. |
stry: | (Input) | text for y axis labelling. |
strtitle: | (Input) | text for title of plot. |
strsubtitle: | (Input) | text for subtitle of plot. |
Returns
Description
Label current Plot.
See Also
See other functions in this section
Availability
In release 6.4.0
Set the line style.
Synopsis
Prototype
ajint ajGraphicsSetLinestyle (
ajint linestyle
);
Type | Name | Read/Write | Description |
ajint | linestyle | Input | line style to set drawing to. |
ajint | | RETURN | the previous line style. |
Input
linestyle: | (Input) | line style to set drawing to. |
Returns
ajint: | the previous line style. |
Description
Set the line style.
See Also
See other functions in this section
Availability
In release 6.4.0
Set the width and height of the plot page.
Ignored by most plplot drivers, but will be used by PNG
Synopsis
Prototype
void ajGraphicsSetPagesize (
ajuint plotwidth,
ajuint plotheight
);
Type | Name | Read/Write | Description |
ajuint | plotwidth | Input | Page width in pixels or mm |
ajuint | plotheight | Input | Page height in pixels or mm |
void | | RETURN | |
Input
plotwidth: | (Input) | Page width in pixels or mm |
plotheight: | (Input) | Page height in pixels or mm |
Returns
Description
Set the width and height of the plot page.
Ignored by most plplot drivers, but will be used by PNG
See Also
See other functions in this section
Availability
In release 6.4.0
Set the current pen width.
Synopsis
Prototype
void ajGraphicsSetPenwidth (
float penwidth
);
Type | Name | Read/Write | Description |
float | penwidth | Input | width for the pen. |
void | | RETURN | |
Input
penwidth: | (Input) | width for the pen. |
Returns
Description
Set the current pen width.
See Also
See other functions in this section
Availability
In release 6.4.0
Set graph orientation
Synopsis
Prototype
void ajGraphicsSetPortrait (
AjBool set
);
Type | Name | Read/Write | Description |
AjBool | set | Input | portrait orientation if true, else landscape |
void | | RETURN | |
Input
set: | (Input) | portrait orientation if true, else landscape |
Returns
Description
Set graph orientation
See Also
See other functions in this section
Availability
In release 6.4.0
Label the right hand y axis.
Synopsis
Prototype
void ajGraphicsSetRlabelC (
const char* txt
);
Type | Name | Read/Write | Description |
const char* | txt | Input | text for label of right y axis. |
void | | RETURN | |
Input
txt: | (Input) | text for label of right y axis. |
Returns
Description
Label the right hand y axis.
See Also
See other functions in this section
Availability
In release 6.4.0
Label the right hand y axis.
Synopsis
Prototype
void ajGraphicsSetRlabelS (
const AjPStr str
);
Type | Name | Read/Write | Description |
const AjPStr | str | Input | text for label of right y axis. |
void | | RETURN | |
Input
str: | (Input) | text for label of right y axis. |
Returns
Description
Label the right hand y axis.
See Also
See other functions in this section
Availability
In release 6.4.0
Generating arrays of valid colour codes
Functions: ajGraphicsBasecolourNewNuc ajGraphicsBasecolourNewProt
Initialise a base colours array for a string of nucleotide
sequence characters
Synopsis
Prototype
ajint* ajGraphicsBasecolourNewNuc (
const AjPStr codes
);
Type | Name | Read/Write | Description |
const AjPStr | codes | Input | Residue codes for each numbered position |
ajint* | | RETURN | Array of colours (see PLPLOT) |
Input
codes: | (Input) | Residue codes for each numbered position |
Returns
ajint*: | Array of colours (see PLPLOT) |
Description
Initialise a base colours array for a string of nucleotide
sequence characters
See Also
See other functions in this section
Availability
In release 6.4.0
Initialize a base colours array for a string of protein sequence characters
according to the following colour scheme designed by Toby Gibson (EMBL
Heidelberg) to show the chemical properties 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* ajGraphicsBasecolourNewProt (
const AjPStr codes
);
Type | Name | Read/Write | Description |
const AjPStr | codes | Input | Residue codes for each numbered position |
ajint* | | RETURN | Array of colours (see PLPLOT) |
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 Gibson (EMBL
Heidelberg) to show the chemical properties 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)
See Also
See other functions in this section
Availability
In release 6.4.0
Querying and reporting internal values
Functions: ajGraphicsCheckColourC ajGraphicsCheckColourS ajGraphicsGetCharsize ajGraphicsGetFgcolour ajGraphicsGetParamsPage
Find if the colour is on the list
Synopsis
Prototype
ajint ajGraphicsCheckColourC (
const char* txt
);
Type | Name | Read/Write | Description |
const char* | txt | Input | colour name. |
ajint | | RETURN | the colour number if found else -1. |
Input
Returns
ajint: | the colour number if found else -1. |
Description
Find if the colour is on the list
See Also
See other functions in this section
Availability
In release 6.4.0
Find if the colour is on the list
Synopsis
Prototype
ajint ajGraphicsCheckColourS (
const AjPStr str
);
Type | Name | Read/Write | Description |
const AjPStr | str | Input | colour name. |
ajint | | RETURN | the colour number if found else -1. |
Input
Returns
ajint: | the colour number if found else -1. |
Description
Find if the colour is on the list
See Also
See other functions in this section
Availability
In release 6.4.0
Get the char size.
Synopsis
Prototype
void ajGraphicsGetCharsize (
float* defheight,
float* currentscale
);
Type | Name | Read/Write | Description |
float* | defheight | Modify | where to store the default character height |
float* | currentscale | Modify | where to store the current (scaled)
character height |
void | | RETURN | |
Input & Output
defheight: | (Modify) | where to store the default character height |
currentscale: | (Modify) | where to store the current (scaled)
character height |
Returns
Description
Get the char size.
See Also
See other functions in this section
Availability
In release 6.4.0
Return current foreground colour
Synopsis
Prototype
ajint ajGraphicsGetFgcolour (
void
);
Type | Name | Read/Write | Description |
ajint | | RETURN | colour. |
Returns
Description
Return current foreground colour
See Also
See other functions in this section
Availability
In release 6.4.0
Get the output page parameters for plplot internal use. These can be set by
the user and used by some device drivers.
For graph data type, sets to zero as these are not applicable.
Synopsis
Prototype
void ajGraphicsGetParamsPage (
float* xp,
float* yp,
ajint* xleng,
ajint* yleng,
ajint* xoff,
ajint* yoff
);
Type | Name | Read/Write | Description |
float* | xp | Modify | where to store the x pixels/inch |
float* | yp | Modify | where to store the y pixels/inch |
ajint* | xleng | Modify | where to store the x length |
ajint* | yleng | Modify | where to the y length |
ajint* | xoff | Modify | where to store the x offset |
ajint* | yoff | Modify | where to store the y offset |
void | | RETURN | |
Input & Output
xp: | (Modify) | where to store the x pixels/inch |
yp: | (Modify) | where to store the y pixels/inch |
xleng: | (Modify) | where to store the x length |
yleng: | (Modify) | where to the y length |
xoff: | (Modify) | where to store the x offset |
yoff: | (Modify) | where to store the y offset |
Returns
Description
Get the output page parameters for plplot internal use. These can be set by
the user and used by some device drivers.
For graph data type, sets to zero as these are not applicable.
See Also
See other functions in this section
Availability
In release 6.4.0
Drawing lines and objects
Functions: ajGraphicsDrawarcArc ajGraphicsDrawarcRect ajGraphicsDrawarcRectFill ajGraphicsDrawarcTextJustify ajGraphicsDrawbarsHoriz ajGraphicsDrawbarsVert ajGraphicsDrawposBox ajGraphicsDrawposBoxFill ajGraphicsDrawposCircle ajGraphicsDrawposDia ajGraphicsDrawposDiaFill ajGraphicsDrawposLine ajGraphicsDrawposRect ajGraphicsDrawposRectFill ajGraphicsDrawposTextAtend ajGraphicsDrawposTextAtlineJustify ajGraphicsDrawposTextAtmid ajGraphicsDrawposTextAtstart ajGraphicsDrawposTextJustify ajGraphicsDrawposTri ajGraphicsDrawposTriFill ajGraphicsDrawsetDots ajGraphicsDrawsetLines ajGraphicsDrawsetPoly ajGraphicsDrawsetPolyFill ajGraphicsDrawsetSymbols
Draw a portion of a circle (an arc).
Synopsis
Prototype
void ajGraphicsDrawarcArc (
PLFLT xcentre,
PLFLT ycentre,
PLFLT radius,
PLFLT startangle,
PLFLT endangle
);
Type | Name | Read/Write | Description |
PLFLT | xcentre | Input | x coord for centre. |
PLFLT | ycentre | Input | y coord for centre. |
PLFLT | radius | Input | radius of the circle. |
PLFLT | startangle | Input | angle of the start of the arc. |
PLFLT | endangle | Input | angle of the end of the arc. |
void | | RETURN | |
Input
xcentre: | (Input) | x coord for centre. |
ycentre: | (Input) | y coord for centre. |
radius: | (Input) | radius of the circle. |
startangle: | (Input) | angle of the start of the arc. |
endangle: | (Input) | angle of the end of the arc. |
Returns
Description
Draw a portion of a circle (an arc).
See Also
See other functions in this section
Availability
In release 6.4.0
Draw a rectangle along a curve with the current pen colour/style.
Synopsis
Prototype
void ajGraphicsDrawarcRect (
PLFLT xcentre,
PLFLT ycentre,
PLFLT radius,
PLFLT startangle,
PLFLT endangle,
PLFLT height
);
Type | Name | Read/Write | Description |
PLFLT | xcentre | Input | x coord for centre. |
PLFLT | ycentre | Input | y coord for centre. |
PLFLT | radius | Input | radius of the circle. |
PLFLT | startangle | Input | angle of the start of the rectangle. |
PLFLT | endangle | Input | angle of the end of the rectangle. |
PLFLT | height | Input | Height of the rectangle in user coordinates. |
void | | RETURN | |
Input
xcentre: | (Input) | x coord for centre. |
ycentre: | (Input) | y coord for centre. |
radius: | (Input) | radius of the circle. |
startangle: | (Input) | angle of the start of the rectangle. |
endangle: | (Input) | angle of the end of the rectangle. |
height: | (Input) | Height of the rectangle in user coordinates. |
Returns
Description
Draw a rectangle along a curve with the current pen colour/style.
See Also
See other functions in this section
Availability
In release 6.4.0
Draw a rectangle along a curve and fill it with the current pen
colour/style.
Synopsis
Prototype
void ajGraphicsDrawarcRectFill (
PLFLT xcentre,
PLFLT ycentre,
PLFLT radius,
PLFLT startangle,
PLFLT endangle,
PLFLT height
);
Type | Name | Read/Write | Description |
PLFLT | xcentre | Input | x coord for centre. |
PLFLT | ycentre | Input | y coord for centre. |
PLFLT | radius | Input | radius of the circle. |
PLFLT | startangle | Input | angle of the start of the rectangle. |
PLFLT | endangle | Input | angle of the end of the rectangle. |
PLFLT | height | Input | Height of the rectangle in user coordinates. |
void | | RETURN | |
Input
xcentre: | (Input) | x coord for centre. |
ycentre: | (Input) | y coord for centre. |
radius: | (Input) | radius of the circle. |
startangle: | (Input) | angle of the start of the rectangle. |
endangle: | (Input) | angle of the end of the rectangle. |
height: | (Input) | Height of the rectangle in user coordinates. |
Returns
Description
Draw a rectangle along a curve and fill it with the current pen
colour/style.
See Also
See other functions in this section
Availability
In release 6.4.0
Draw text along a curve (i.e., an arc of a circle). The text is
written character by character, forwards or backwards depending on
the angle.
Synopsis
Prototype
void ajGraphicsDrawarcTextJustify (
PLFLT xcentre,
PLFLT ycentre,
PLFLT radius,
PLFLT startangle,
PLFLT endangle,
const char* txt,
PLFLT just
);
Type | Name | Read/Write | Description |
PLFLT | xcentre | Input | x coord for centre. |
PLFLT | ycentre | Input | y coord for centre. |
PLFLT | radius | Input | radius of the circle. |
PLFLT | startangle | Input | angle of the start of the arc (in deg). |
PLFLT | endangle | Input | angle of the end of the arc (in deg). |
const char* | txt | Input | The text to be displayed. |
PLFLT | just | Input | justification of the string.
(0=left,1=right,0.5=middle etc) |
void | | RETURN | |
Input
xcentre: | (Input) | x coord for centre. |
ycentre: | (Input) | y coord for centre. |
radius: | (Input) | radius of the circle. |
startangle: | (Input) | angle of the start of the arc (in deg). |
endangle: | (Input) | angle of the end of the arc (in deg). |
txt: | (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 curve (i.e., an arc of a circle). The text is
written character by character, forwards or backwards depending on
the angle.
See Also
See other functions in this section
Availability
In release 6.4.0
Draw Horizontal Error Bars.
Synopsis
Prototype
void ajGraphicsDrawbarsHoriz (
ajuint num,
PLFLT* y,
PLFLT* xmin,
PLFLT* xmax
);
Type | Name | Read/Write | Description |
ajuint | num | Input | number of error bars to be drawn. |
CONST PLFLT* | y | Input | y positions to draw at. |
CONST PLFLT* | xmin | Input | x positions to start at. |
CONST PLFLT* | xmax | Input | x positions to end at. |
void | | RETURN | |
Input
num: | (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.
See Also
See other functions in this section
Availability
In release 6.4.0
Draw vertical Error Bars.
Synopsis
Prototype
void ajGraphicsDrawbarsVert (
ajuint num,
PLFLT* x,
PLFLT* ymin,
PLFLT* ymax
);
Type | Name | Read/Write | Description |
ajuint | num | Input | number of error bars to be drawn. |
CONST PLFLT* | x | Input | x positions to draw at. |
CONST PLFLT* | ymin | Input | y positions to start at. |
CONST PLFLT* | ymax | Input | y positions to end at. |
void | | RETURN | |
Input
num: | (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.
See Also
See other functions in this section
Availability
In release 6.4.0
Draw a box to the plotter device at point xx0,yy0 size big.
Synopsis
Prototype
void ajGraphicsDrawposBox (
PLFLT x,
PLFLT y,
PLFLT size
);
Type | Name | Read/Write | Description |
PLFLT | x | Input | x position to draw the box. |
PLFLT | y | Input | y position to draw the box. |
PLFLT | size | Input | how big to draw the box. |
void | | RETURN | |
Input
x: | (Input) | x position to draw the box. |
y: | (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 xx0,yy0 size big.
See Also
See other functions in this section
Availability
In release 6.4.0
Draw a box to the plotter device at point xx0,yy0 size big and
fill it in.
Synopsis
Prototype
void ajGraphicsDrawposBoxFill (
PLFLT x,
PLFLT y,
PLFLT size
);
Type | Name | Read/Write | Description |
PLFLT | x | Input | x position to draw the box. |
PLFLT | y | Input | y position to draw the box. |
PLFLT | size | Input | how big to draw the box. |
void | | RETURN | |
Input
x: | (Input) | x position to draw the box. |
y: | (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 xx0,yy0 size big and
fill it in.
See Also
See other functions in this section
Availability
In release 6.4.0
Draw a circle.
Synopsis
Prototype
void ajGraphicsDrawposCircle (
PLFLT x,
PLFLT y,
float radius
);
Type | Name | Read/Write | Description |
PLFLT | x | Input | x coord for centre. |
PLFLT | y | Input | y coord for centre. |
float | radius | Input | radius of the circle. |
void | | RETURN | |
Input
x: | (Input) | x coord for centre. |
y: | (Input) | y coord for centre. |
radius: | (Input) | radius of the circle. |
Returns
Description
Draw a circle.
See Also
See other functions in this section
Availability
In release 6.4.0
Draw a diamond to the plotter device at point xx0,yy0 size big.
Synopsis
Prototype
void ajGraphicsDrawposDia (
PLFLT x,
PLFLT y,
PLFLT size
);
Type | Name | Read/Write | Description |
PLFLT | x | Input | x position to draw the diamond. |
PLFLT | y | Input | y position to draw the diamond. |
PLFLT | size | Input | how big to draw the diamond. |
void | | RETURN | |
Input
x: | (Input) | x position to draw the diamond. |
y: | (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 xx0,yy0 size big.
See Also
See other functions in this section
Availability
In release 6.4.0
Draw a diamond to the plotter device at point xx0,yy0 size big and
fill it in.
Synopsis
Prototype
void ajGraphicsDrawposDiaFill (
PLFLT x,
PLFLT y,
PLFLT size
);
Type | Name | Read/Write | Description |
PLFLT | x | Input | x position to draw the diamond. |
PLFLT | y | Input | y position to draw the diamond. |
PLFLT | size | Input | how big to draw the diamond. |
void | | RETURN | |
Input
x: | (Input) | x position to draw the diamond. |
y: | (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 xx0,yy0 size big and
fill it in.
See Also
See other functions in this section
Availability
In release 6.4.0
Draw line between 2 points.
Synopsis
Prototype
void ajGraphicsDrawposLine (
PLFLT x,
PLFLT y,
PLFLT x2,
PLFLT y2
);
Type | Name | Read/Write | Description |
PLFLT | x | Input | x start position. |
PLFLT | y | Input | y start position. |
PLFLT | x2 | Input | x end position. |
PLFLT | y2 | Input | y end position. |
void | | RETURN | |
Input
x: | (Input) | x start position. |
y: | (Input) | y start position. |
x2: | (Input) | x end position. |
y2: | (Input) | y end position. |
Returns
Description
Draw line between 2 points.
See Also
See other functions in this section
Availability
In release 6.4.0
Draw a rectangle with the current pen colour/style.
Synopsis
Prototype
void ajGraphicsDrawposRect (
PLFLT x,
PLFLT y,
PLFLT x2,
PLFLT y2
);
Type | Name | Read/Write | Description |
PLFLT | x | Input | xx0 coord. |
PLFLT | y | Input | yy0 coord. |
PLFLT | x2 | Input | xx1 coord. |
PLFLT | y2 | Input | yy1 coord. |
void | | RETURN | |
Input
x: | (Input) | xx0 coord. |
y: | (Input) | yy0 coord. |
x2: | (Input) | xx1 coord. |
y2: | (Input) | yy1 coord. |
Returns
Description
Draw a rectangle with the current pen colour/style.
See Also
See other functions in this section
Availability
In release 6.4.0
Draw a rectangle and fill it with the current pen colour/style.
Synopsis
Prototype
void ajGraphicsDrawposRectFill (
PLFLT x,
PLFLT y,
PLFLT x2,
PLFLT y2
);
Type | Name | Read/Write | Description |
PLFLT | x | Input | xx0 coord. |
PLFLT | y | Input | yy0 coord. |
PLFLT | x2 | Input | xx1 coord. |
PLFLT | y2 | Input | yy1 coord. |
void | | RETURN | |
Input
x: | (Input) | xx0 coord. |
y: | (Input) | yy0 coord. |
x2: | (Input) | xx1 coord. |
y2: | (Input) | yy1 coord. |
Returns
Description
Draw a rectangle and fill it with the current pen colour/style.
See Also
See other functions in this section
Availability
In release 6.4.0
Draw text ending at position (xx1,yy1)
Synopsis
Prototype
void ajGraphicsDrawposTextAtend (
PLFLT x,
PLFLT y,
const char* txt
);
Type | Name | Read/Write | Description |
PLFLT | x | Input | xx1 coord. |
PLFLT | y | Input | yy1 coord. |
const char* | txt | Input | The text to be displayed. |
void | | RETURN | |
Input
x: | (Input) | xx1 coord. |
y: | (Input) | yy1 coord. |
txt: | (Input) | The text to be displayed. |
Returns
Description
Draw text ending at position (xx1,yy1)
See Also
See other functions in this section
Availability
In release 6.4.0
Draw text along a line.
Synopsis
Prototype
void ajGraphicsDrawposTextAtlineJustify (
PLFLT x,
PLFLT y,
PLFLT x2,
PLFLT y2,
const char* txt,
PLFLT just
);
Type | Name | Read/Write | Description |
PLFLT | x | Input | x1 coord. |
PLFLT | y | Input | y1 coord. |
PLFLT | x2 | Input | x2 coord. |
PLFLT | y2 | Input | y2 coord. |
const char* | txt | Input | The text to be displayed. |
PLFLT | just | Input | justification of the string.
(0=left,1=right,0.5=middle etc) |
void | | RETURN | |
Input
x: | (Input) | x1 coord. |
y: | (Input) | y1 coord. |
x2: | (Input) | x2 coord. |
y2: | (Input) | y2 coord. |
txt: | (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.
See Also
See other functions in this section
Availability
In release 6.4.0
Draw text with Mid point of text at (xx1,yy1).
For graph data type, writes directly.
Synopsis
Prototype
void ajGraphicsDrawposTextAtmid (
PLFLT x,
PLFLT y,
const char* txt
);
Type | Name | Read/Write | Description |
PLFLT | x | Input | xx1 coord. |
PLFLT | y | Input | yy1 coord. |
const char* | txt | Input | The text to be displayed. |
void | | RETURN | |
Input
x: | (Input) | xx1 coord. |
y: | (Input) | yy1 coord. |
txt: | (Input) | The text to be displayed. |
Returns
Description
Draw text with Mid point of text at (xx1,yy1).
For graph data type, writes directly.
See Also
See other functions in this section
Availability
In release 6.4.0
Draw text starting at position (xx1,yy1)
Synopsis
Prototype
void ajGraphicsDrawposTextAtstart (
PLFLT x,
PLFLT y,
const char* txt
);
Type | Name | Read/Write | Description |
PLFLT | x | Input | xx1 coordinate |
PLFLT | y | Input | yy1 coordinate |
const char* | txt | Input | The text to be displayed. |
void | | RETURN | |
Input
x: | (Input) | xx1 coordinate |
y: | (Input) | yy1 coordinate |
txt: | (Input) | The text to be displayed. |
Returns
Description
Draw text starting at position (xx1,yy1)
See Also
See other functions in this section
Availability
In release 6.4.0
Draw text, positioning with respect to (xx1,yy1) by justified as
defined by just.
Synopsis
Prototype
void ajGraphicsDrawposTextJustify (
PLFLT x,
PLFLT y,
const char* txt,
PLFLT just
);
Type | Name | Read/Write | Description |
PLFLT | x | Input | xx1 coord. |
PLFLT | y | Input | yy1 coord. |
const char* | txt | Input | The text to be displayed. |
PLFLT | just | Input | justification of the string.
(0=left,1=right,0.5=middle etc) |
void | | RETURN | |
Input
x: | (Input) | xx1 coord. |
y: | (Input) | yy1 coord. |
txt: | (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 (xx1,yy1) by justified as
defined by just.
See Also
See other functions in this section
Availability
In release 6.4.0
Draw a Triangle.
Synopsis
Prototype
void ajGraphicsDrawposTri (
PLFLT x,
PLFLT y,
PLFLT x2,
PLFLT y2,
PLFLT x3,
PLFLT y3
);
Type | Name | Read/Write | Description |
PLFLT | x | Input | xx1 coord of point 1. |
PLFLT | y | Input | yy1 coord of point 1. |
PLFLT | x2 | Input | xx2 coord of point 2. |
PLFLT | y2 | Input | yy2 coord of point 2. |
PLFLT | x3 | Input | x3 coord of point 3. |
PLFLT | y3 | Input | y3 coord of point 3. |
void | | RETURN | |
Input
x: | (Input) | xx1 coord of point 1. |
y: | (Input) | yy1 coord of point 1. |
x2: | (Input) | xx2 coord of point 2. |
y2: | (Input) | yy2 coord of point 2. |
x3: | (Input) | x3 coord of point 3. |
y3: | (Input) | y3 coord of point 3. |
Returns
Description
Draw a Triangle.
See Also
See other functions in this section
Availability
In release 6.4.0
Draw a Triangle and fill it in.
Synopsis
Prototype
void ajGraphicsDrawposTriFill (
PLFLT x,
PLFLT y,
PLFLT x2,
PLFLT y2,
PLFLT x3,
PLFLT y3
);
Type | Name | Read/Write | Description |
PLFLT | x | Input | xx1 coord of point 1. |
PLFLT | y | Input | yy1 coord of point 1. |
PLFLT | x2 | Input | xx2 coord of point 2. |
PLFLT | y2 | Input | yy2 coord of point 2. |
PLFLT | x3 | Input | x3 coord of point 3. |
PLFLT | y3 | Input | y3 coord of point 3. |
void | | RETURN | |
Input
x: | (Input) | xx1 coord of point 1. |
y: | (Input) | yy1 coord of point 1. |
x2: | (Input) | xx2 coord of point 2. |
y2: | (Input) | yy2 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.
See Also
See other functions in this section
Availability
In release 6.4.0
Draw a set of dots.
Synopsis
Prototype
void ajGraphicsDrawsetDots (
ajuint num,
PLFLT* xx,
PLFLT* yy
);
Type | Name | Read/Write | Description |
ajuint | num | Input | The number of dots to be drawn. |
CONST PLFLT* | xx | Input | xx1 coord. |
CONST PLFLT* | yy | Input | yy1 coord. |
void | | RETURN | |
Input
num: | (Input) | The number of dots to be drawn. |
xx: | (Input) | xx1 coord. |
yy: | (Input) | yy1 coord. |
Returns
Description
Draw a set of dots.
See Also
See other functions in this section
Availability
In release 6.4.0
Draw a set of lines.
Synopsis
Prototype
void ajGraphicsDrawsetLines (
ajuint num,
PLFLT* xx,
PLFLT* yy,
PLFLT* xx2,
PLFLT* yy2
);
Type | Name | Read/Write | Description |
ajuint | num | Input | The number of lines to be drawn. |
CONST PLFLT* | xx | Modify | x start coordinates |
CONST PLFLT* | yy | Modify | y start coordinates |
CONST PLFLT* | xx2 | Modify | x end coordinates |
CONST PLFLT* | yy2 | Modify | y end coordinates |
void | | RETURN | |
Input
num: | (Input) | The number of lines to be drawn. |
Input & Output
xx: | (Modify) | x start coordinates |
yy: | (Modify) | y start coordinates |
xx2: | (Modify) | x end coordinates |
yy2: | (Modify) | y end coordinates |
Returns
Description
Draw a set of lines.
See Also
See other functions in this section
Availability
In release 6.4.0
Draw a polygon.
Synopsis
Prototype
void ajGraphicsDrawsetPoly (
ajuint num,
PLFLT* xx,
PLFLT* yy
);
Type | Name | Read/Write | Description |
ajuint | num | Input | number of points |
CONST PLFLT* | xx | Input | x coord of points |
CONST PLFLT* | yy | Input | y coord of points |
void | | RETURN | |
Input
num: | (Input) | number of points |
xx: | (Input) | x coord of points |
yy: | (Input) | y coord of points |
Returns
Description
Draw a polygon.
See Also
See other functions in this section
Availability
In release 6.4.0
Draw a polygon and fill it in.
Synopsis
Prototype
void ajGraphicsDrawsetPolyFill (
ajuint num,
PLFLT* xx,
PLFLT* yy
);
Type | Name | Read/Write | Description |
ajuint | num | Input | number of points |
CONST PLFLT* | xx | Input | x coord of points |
CONST PLFLT* | yy | Input | y coord of points |
void | | RETURN | |
Input
num: | (Input) | number of points |
xx: | (Input) | x coord of points |
yy: | (Input) | y coord of points |
Returns
Description
Draw a polygon and fill it in.
See Also
See other functions in this section
Availability
In release 6.4.0
Draw a set of dots.
Synopsis
Prototype
void ajGraphicsDrawsetSymbols (
ajuint num,
PLFLT* xx,
PLFLT* yy,
ajuint symbol
);
Type | Name | Read/Write | Description |
ajuint | num | Input | Number of coordinates in xx1 and xx2. |
CONST PLFLT* | xx | Input | xx1 coord. |
CONST PLFLT* | yy | Input | yy1 coord. |
ajuint | symbol | Input | Symbol code. |
void | | RETURN | |
Input
num: | (Input) | Number of coordinates in xx1 and xx2. |
xx: | (Input) | xx1 coord. |
yy: | (Input) | yy1 coord. |
symbol: | (Input) | Symbol code. |
Returns
Description
Draw a set of dots.
See Also
See other functions in this section
Availability
In release 6.4.0
Calculations using plot internals
Functions: ajGraphicsCalcCharsize ajGraphicsCalcCoord ajGraphicsCalcDistance ajGraphicsCalcRange ajGraphicsCalcTextheight ajGraphicsCalcTextlengthC ajGraphicsCalcTextlengthS
Computes the character size (in mm) needed to write a text string
with specified height and length (in user coord). The length of the
string is the distance between (xx1,yy1) and (xx2,yy2); its height is
TextHeight. If the default size is too large, characters are
shrunk. If it is too small, characters are enlarged.
Synopsis
Prototype
PLFLT ajGraphicsCalcCharsize (
PLFLT xx1,
PLFLT yy1,
PLFLT xx2,
PLFLT yy2,
const char* text,
PLFLT TextHeight
);
Type | Name | Read/Write | Description |
PLFLT | xx1 | Input | xx1 coord. |
PLFLT | yy1 | Input | yy1 coord. |
PLFLT | xx2 | Input | xx2 coord. |
PLFLT | yy2 | Input | yy2 coord. |
const char* | text | Input | The text to be displayed. |
PLFLT | TextHeight | Input | The height of the text (in user coord). |
PLFLT | | RETURN | The character size (in mm) that fits the specified
height and length. |
Input
xx1: | (Input) | xx1 coord. |
yy1: | (Input) | yy1 coord. |
xx2: | (Input) | xx2 coord. |
yy2: | (Input) | yy2 coord. |
text: | (Input) | The text to be displayed. |
TextHeight: | (Input) | The height of the text (in user coord). |
Returns
PLFLT: | The character size (in mm) that fits the specified
height and length. |
Description
Computes the character size (in mm) needed to write a text string
with specified height and length (in user coord). The length of the
string is the distance between (xx1,yy1) and (xx2,yy2); its height is
TextHeight. If the default size is too large, characters are
shrunk. If it is too small, characters are enlarged.
See Also
See other functions in this section
Availability
In release 6.4.0
compute the coordinates of a point on a circle knowing the angle.
Synopsis
Prototype
PLFLT* ajGraphicsCalcCoord (
PLFLT x,
PLFLT y,
PLFLT radius,
PLFLT angle
);
Type | Name | Read/Write | Description |
PLFLT | x | Input | x coord for centre. |
PLFLT | y | Input | y coord for centre. |
PLFLT | radius | Input | Radius of the circle. |
PLFLT | angle | Input | angle at which the point is. |
PLFLT* | | RETURN | The x and y coordinates of the point. |
Input
x: | (Input) | x coord for centre. |
y: | (Input) | y coord for centre. |
radius: | (Input) | Radius of the circle. |
angle: | (Input) | angle at which the point is. |
Returns
PLFLT*: | The x and y coordinates of the point. |
Description
compute the coordinates of a point on a circle knowing the angle.
See Also
See other functions in this section
Availability
In release 6.4.0
Compute the distance between 2 points in user coordinates.
Synopsis
Prototype
PLFLT ajGraphicsCalcDistance (
PLFLT xx1,
PLFLT yy1,
PLFLT xx2,
PLFLT yy2
);
Type | Name | Read/Write | Description |
PLFLT | xx1 | Input | x coord of point 1 |
PLFLT | yy1 | Input | y coord of point 1 |
PLFLT | xx2 | Input | x coord of point 2 |
PLFLT | yy2 | Input | y coord of point 2 |
PLFLT | | RETURN | The distance between the 2 points in user coordinates. |
Input
xx1: | (Input) | x coord of point 1 |
yy1: | (Input) | y coord of point 1 |
xx2: | (Input) | x coord of point 2 |
yy2: | (Input) | y coord of point 2 |
Returns
PLFLT: | The distance between the 2 points in user coordinates. |
Description
Compute the distance between 2 points in user coordinates.
See Also
See other functions in this section
Availability
In release 6.4.0
Get the max and min of the data points you wish to display.
Synopsis
Prototype
void ajGraphicsCalcRange (
const float* array,
ajuint npoints,
float* min,
float* max
);
Type | Name | Read/Write | Description |
const float* | array | Input | array |
ajuint | npoints | Input | Number of data points |
float* | min | Output | min. |
float* | max | Output | max. |
void | | RETURN | |
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.
See Also
See other functions in this section
Availability
In release 6.4.0
Compute the height of a character in millimetres.
Synopsis
Prototype
PLFLT ajGraphicsCalcTextheight (
void
);
Type | Name | Read/Write | Description |
PLFLT | | RETURN | The height of the character in user coordinates. |
Returns
PLFLT: | The height of the character in user coordinates. |
Description
Compute the height of a character in millimetres.
See Also
See other functions in this section
Availability
In release 6.4.0
Compute the length of a string in millimetres.
Synopsis
Prototype
PLFLT ajGraphicsCalcTextlengthC (
const char* txt
);
Type | Name | Read/Write | Description |
const char* | txt | Input | Text |
PLFLT | | RETURN | The length of the string in user coordinates. |
Input
Returns
PLFLT: | The length of the string in user coordinates. |
Description
Compute the length of a string in millimetres.
See Also
See other functions in this section
Availability
In release 6.4.0
Compute the length of a string in millimetres.
Synopsis
Prototype
PLFLT ajGraphicsCalcTextlengthS (
const AjPStr str
);
Type | Name | Read/Write | Description |
const AjPStr | str | Input | Text |
PLFLT | | RETURN | The length of the string in user coordinates. |
Input
Returns
PLFLT: | The length of the string in user coordinates. |
Description
Compute the length of a string in millimetres.
See Also
See other functions in this section
Availability
In release 6.4.0
Functions: ajGraphicsUnused
Unused functions to avoid compiler warnings
Synopsis
Prototype
void ajGraphicsUnused (
void
);
Type | Name | Read/Write | Description |
void | | RETURN | |
Returns
Description
Unused functions to avoid compiler warnings
See Also
See other functions in this section
Availability
In release 6.4.0
Functions called on exit
Functions: ajGraphicsExit
Cleans up graphics internal memory
Synopsis
Prototype
void ajGraphicsExit (
void
);
Type | Name | Read/Write | Description |
void | | RETURN | |
Returns
Description
Cleans up graphics internal memory
See Also
See other functions in this section
Availability
In release 6.4.0
Graph object
Sections: Constructors Opening Modifiers Queries Plotting Debugging Graph data management
Construct a new graph object to be populated by other functions
Functions: ajGraphNew
Create a structure to hold a general graph.
Synopsis
Prototype
AjPGraph ajGraphNew (
void
);
Type | Name | Read/Write | Description |
AjPGraph | | RETURN | multiple graph structure. |
Returns
AjPGraph: | multiple graph structure. |
Description
Create a structure to hold a general graph.
See Also
See other functions in this section
Availability
In release 6.4.0
Opens a plot page
Functions: ajGraphInitSeq ajGraphNewpage ajGraphOpenFlags ajGraphOpenMm ajGraphOpenPlotset ajGraphOpenWin
Initialises a graph using default values based on a sequence.
Existing titles and other data are unchanged
Synopsis
Prototype
void ajGraphInitSeq (
AjPGraph thys,
const AjPSeq seq
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | Graph |
const AjPSeq | seq | Input | Sequence |
void | | RETURN | |
Input
Input & Output
Returns
Description
Initialises a graph using default values based on a sequence.
Existing titles and other data are unchanged
See Also
See other functions in this section
Availability
In release 6.4.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,
plot title and subtitle, etc to be reset or stay the same for the next page.
Synopsis
Prototype
void ajGraphNewpage (
AjPGraph thys,
AjBool resetdefaults
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Output | Graph object |
AjBool | resetdefaults | Input | reset page setting? |
void | | RETURN | |
Input
resetdefaults: | (Input) | reset page setting? |
Output
thys: | (Output) | Graph object |
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,
plot title and subtitle, etc to be reset or stay the same for the next page.
See Also
See other functions in this section
Availability
In release 6.4.0
Open a window whose view is defined by the x's and y's min and max
values.
Synopsis
Prototype
void ajGraphOpenFlags (
AjPGraph thys,
PLFLT xmin,
PLFLT xmax,
PLFLT ymin,
PLFLT ymax,
ajint flags
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Output | Graph object |
PLFLT | xmin | Input | minimum x value.(user coordinates) |
PLFLT | xmax | Input | maximum x value. |
PLFLT | ymin | Input | minimum y value. |
PLFLT | ymax | Input | maximum y value. |
ajint | flags | Input | flag bit settings |
void | | RETURN | |
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.
See Also
See other functions in this section
Availability
In release 6.4.0
Open a window whose view is defined by x and y's size in millimetres
to allow easy scaling of characters and strings whose sizes are always
in millimetres.
Synopsis
Prototype
void ajGraphOpenMm (
AjPGraph thys,
float* xmm,
float* ymm
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Output | Graph object |
float* | xmm | Output | x length in millimetres |
float* | ymm | Output | y length in millimetres |
void | | RETURN | |
Output
thys: | (Output) | Graph object |
xmm: | (Output) | x length in millimetres |
ymm: | (Output) | y length in millimetres |
Returns
Description
Open a window whose view is defined by x and y's size in millimetres
to allow easy scaling of characters and strings whose sizes are always
in millimetres.
See Also
See other functions in this section
Availability
In release 6.4.0
Open a window with a set of plots
Synopsis
Prototype
void ajGraphOpenPlotset (
AjPGraph thys,
ajuint numofsets
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Output | Graph object. |
ajuint | numofsets | Input | number of plots in set. |
void | | RETURN | |
Input
numofsets: | (Input) | number of plots in set. |
Output
thys: | (Output) | Graph object. |
Returns
Description
Open a window with a set of plots
See Also
See other functions in this section
Availability
In release 6.4.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
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Output | Graph object |
float | xmin | Input | minimum x value.(user coordinates) |
float | xmax | Input | maximum x value. |
float | ymin | Input | minimum y value. |
float | ymax | Input | maximum y value. |
void | | RETURN | |
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.
See Also
See other functions in this section
Availability
In release 6.4.0
Modifying a general graph object
Functions: ajGraphAppendTitleC ajGraphAppendTitleS ajGraphClear ajGraphSetDescC ajGraphSetDescS ajGraphSetDevicetype ajGraphSetFlag ajGraphSetMulti ajGraphSetOutdirS ajGraphSetOutfileC ajGraphSetOutfileS ajGraphSetSubtitleC ajGraphSetSubtitleS ajGraphSetTitleC ajGraphSetTitleS ajGraphSetXlabelC ajGraphSetXlabelS ajGraphSetYlabelC ajGraphSetYlabelS ajGraphShowSubtitle ajGraphShowTitle
Set an empty graph title from the description or program name and extra text
'of ...' supplied by the caller.
Synopsis
Prototype
void ajGraphAppendTitleC (
AjPGraph thys,
const char* txt
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | Graph structure to store info in. |
const char* | txt | Input | Title. |
void | | RETURN | |
Input
Input & Output
thys: | (Modify) | Graph structure to store info in. |
Returns
Description
Set an empty graph title from the description or program name and extra text
'of ...' supplied by the caller.
See Also
See other functions in this section
Availability
In release 6.4.0
Set an empty graph title from the description or program name and extra text
'of ...' supplied by the caller.
Synopsis
Prototype
void ajGraphAppendTitleS (
AjPGraph thys,
const AjPStr str
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | Graph structure to store info in. |
const AjPStr | str | Input | Title. |
void | | RETURN | |
Input
Input & Output
thys: | (Modify) | Graph structure to store info in. |
Returns
Description
Set an empty graph title from the description or program name and extra text
'of ...' supplied by the caller.
See Also
See other functions in this section
Availability
In release 6.4.0
Delete all the drawable objects connected to the graph object.
Synopsis
Prototype
void ajGraphClear (
AjPGraph thys
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | Graph object |
void | | RETURN | |
Input & Output
thys: | (Modify) | Graph object |
Returns
Description
Delete all the drawable objects connected to the graph object.
See Also
See other functions in this section
Availability
In release 6.4.0
Set the graph description.
Synopsis
Prototype
void ajGraphSetDescC (
AjPGraph thys,
const char* txt
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | Graph structure to store info in. |
const char* | txt | Input | Title. |
void | | RETURN | |
Input
Input & Output
thys: | (Modify) | Graph structure to store info in. |
Returns
Description
Set the graph description.
See Also
See other functions in this section
Availability
In release 6.4.0
Set the graph description.
Synopsis
Prototype
void ajGraphSetDescS (
AjPGraph thys,
const AjPStr str
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | Graph structure to store info in. |
const AjPStr | str | Input | Title. |
void | | RETURN | |
Input
Input & Output
thys: | (Modify) | Graph structure to store info in. |
Returns
Description
Set the graph description.
See Also
See other functions in this section
Availability
In release 6.4.0
Initialize options for a general graph object
Synopsis
Prototype
AjBool ajGraphSetDevicetype (
AjPGraph thys,
const AjPStr devicetype
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | Graph object |
const AjPStr | devicetype | Input | Graph type |
AjBool | | RETURN | ajTrue on success |
Input
devicetype: | (Input) | Graph type |
Input & Output
thys: | (Modify) | Graph object |
Returns
Description
Initialize options for a general graph object
See Also
See other functions in this section
Availability
In release 6.4.0
Set the flags for the graph to add or subtract "flag" depending on set
Synopsis
Prototype
void ajGraphSetFlag (
AjPGraph thys,
ajint flag,
AjBool set
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | graph to have flags altered. |
ajint | flag | Input | flag to be set. |
AjBool | set | Input | whether to set the flag or remove it. |
void | | RETURN | |
Input
flag: | (Input) | flag to be set. |
set: | (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 subtract "flag" depending on set
See Also
See other functions in this section
Availability
In release 6.4.0
Create a structure to hold a number of graphs.
Synopsis
Prototype
void ajGraphSetMulti (
AjPGraph thys,
ajuint numsets
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Output | Graph structure to store info in. |
ajuint | numsets | Input | maximum number of graphs that can be stored. |
void | | RETURN | |
Input
numsets: | (Input) | maximum number of graphs that can be stored. |
Output
thys: | (Output) | Graph structure to store info in. |
Returns
Description
Create a structure to hold a number of graphs.
See Also
See other functions in this section
Availability
In release 6.4.0
Set the directory of the output file. Only used later if the device
plotter is capable of writing to a file (e.g. postscript or png)
Synopsis
Prototype
void ajGraphSetOutdirS (
AjPGraph thys,
const AjPStr str
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | Graph structure to update file name |
const AjPStr | str | Input | Name of the file. |
void | | RETURN | |
Input
str: | (Input) | Name of the file. |
Input & Output
thys: | (Modify) | Graph structure to update file name |
Returns
Description
Set the directory of the output file. Only used later if the device
plotter is capable of writing to a file (e.g. postscript or png)
See Also
See other functions in this section
Availability
In release 6.4.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 ajGraphSetOutfileC (
AjPGraph thys,
const char* txt
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | Graph structure to write file name to. |
const char* | txt | Input | Name of the file. |
void | | RETURN | |
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.
See Also
See other functions in this section
Availability
In release 6.4.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 ajGraphSetOutfileS (
AjPGraph thys,
const AjPStr str
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | Graph structure to write file name to. |
const AjPStr | str | Input | Name of the file. |
void | | RETURN | |
Input
str: | (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.
See Also
See other functions in this section
Availability
In release 6.4.0
Set the graph subtitle.
Synopsis
Prototype
void ajGraphSetSubtitleC (
AjPGraph thys,
const char* txt
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | Graph structure to store info in. |
const char* | txt | Input | Subtitle. |
void | | RETURN | |
Input
Input & Output
thys: | (Modify) | Graph structure to store info in. |
Returns
Description
Set the graph subtitle.
See Also
See other functions in this section
Availability
In release 6.4.0
Set the title for the Y axis.
Synopsis
Prototype
void ajGraphSetSubtitleS (
AjPGraph thys,
const AjPStr str
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | Graph structure to store info in. |
const AjPStr | str | Input | Subtitle |
void | | RETURN | |
Input
Input & Output
thys: | (Modify) | Graph structure to store info in. |
Returns
Description
Set the title for the Y axis.
See Also
See other functions in this section
Availability
In release 6.4.0
Set the graph Title.
Synopsis
Prototype
void ajGraphSetTitleC (
AjPGraph thys,
const char* txt
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | Graph structure to store info in. |
const char* | txt | Input | title. |
void | | RETURN | |
Input
Input & Output
thys: | (Modify) | Graph structure to store info in. |
Returns
Description
Set the graph Title.
See Also
See other functions in this section
Availability
In release 6.4.0
Set the graph title.
Synopsis
Prototype
void ajGraphSetTitleS (
AjPGraph thys,
const AjPStr str
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | Graph structure to store info in. |
const AjPStr | str | Input | Title. |
void | | RETURN | |
Input
Input & Output
thys: | (Modify) | Graph structure to store info in. |
Returns
Description
Set the graph title.
See Also
See other functions in this section
Availability
In release 6.4.0
Set the title for the X axis for multiple plot on one graph.
Synopsis
Prototype
void ajGraphSetXlabelC (
AjPGraph thys,
const char* txt
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | Graph structure to store info in. |
const char* | txt | Input | title for the x axis. |
void | | RETURN | |
Input
txt: | (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.
See Also
See other functions in this section
Availability
In release 6.4.0
Set the title for the X axis for multiple plots on one graph.
Synopsis
Prototype
void ajGraphSetXlabelS (
AjPGraph thys,
const AjPStr str
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | Graph structure to store info in. |
const AjPStr | str | Input | title for the x axis. |
void | | RETURN | |
Input
str: | (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.
See Also
See other functions in this section
Availability
In release 6.4.0
Set the title for the Y axis for multiple plots on one graph.
Synopsis
Prototype
void ajGraphSetYlabelC (
AjPGraph thys,
const char* txt
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | Graph structure to store info in. |
const char* | txt | Input | title for the y axis. |
void | | RETURN | |
Input
txt: | (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.
See Also
See other functions in this section
Availability
In release 6.4.0
Set the title for the Y axis for multiple plots on one graph.
Synopsis
Prototype
void ajGraphSetYlabelS (
AjPGraph thys,
const AjPStr str
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | Graph structure to store info in. |
const AjPStr | str | Input | title for the y axis. |
void | | RETURN | |
Input
str: | (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.
See Also
See other functions in this section
Availability
In release 6.4.0
Set whether the graph is to display the subtitle.
Synopsis
Prototype
void ajGraphShowSubtitle (
AjPGraph thys,
AjBool set
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | graph to have flag altered |
AjBool | set | Input | whether to set or turn off. |
void | | RETURN | |
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.
See Also
See other functions in this section
Availability
In release 6.4.0
Set whether the graph is to display the title.
Synopsis
Prototype
void ajGraphShowTitle (
AjPGraph thys,
AjBool set
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | graph to have flag altered |
AjBool | set | Input | whether to set or turn off. |
void | | RETURN | |
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.
See Also
See other functions in this section
Availability
In release 6.4.0
Querying and reporting internal values
Functions: ajGraphGetParamsPage ajGraphGetSubtitleC ajGraphGetSubtitleS ajGraphGetTitleC ajGraphGetTitleS ajGraphGetXlabelC ajGraphGetXlabelS ajGraphGetYlabelC ajGraphGetYlabelS ajGraphIsData
Get the output page parameters stored in a graph object
For graph data type, sets to zero as these are not applicable.
Synopsis
Prototype
void ajGraphGetParamsPage (
const AjPGraph thys,
float* xp,
float* yp,
ajint* xleng,
ajint* yleng,
ajint* xoff,
ajint* yoff
);
Type | Name | Read/Write | Description |
const AjPGraph | thys | Input | Graph object. |
float* | xp | Modify | where to store the x position |
float* | yp | Modify | where to store the y position |
ajint* | xleng | Modify | where to store the x length |
ajint* | yleng | Modify | where to the y length |
ajint* | xoff | Modify | where to store the x offset |
ajint* | yoff | Modify | where to store the y offset |
void | | RETURN | |
Input
thys: | (Input) | Graph object. |
Input & Output
xp: | (Modify) | where to store the x position |
yp: | (Modify) | where to store the y position |
xleng: | (Modify) | where to store the x length |
yleng: | (Modify) | where to the y length |
xoff: | (Modify) | where to store the x offset |
yoff: | (Modify) | where to store the y offset |
Returns
Description
Get the output page parameters stored in a graph object
For graph data type, sets to zero as these are not applicable.
See Also
See other functions in this section
Availability
In release 6.4.0
Return plot subtitle
Synopsis
Prototype
const char* ajGraphGetSubtitleC (
const AjPGraph thys
);
Type | Name | Read/Write | Description |
const AjPGraph | thys | Input | Graph object. |
const char* | | RETURN | Subtitle |
Input
thys: | (Input) | Graph object. |
Returns
Description
Return plot subtitle
See Also
See other functions in this section
Availability
In release 6.4.0
Return plot subtitle
Synopsis
Prototype
const AjPStr ajGraphGetSubtitleS (
const AjPGraph thys
);
Type | Name | Read/Write | Description |
const AjPGraph | thys | Input | Graph object. |
const AjPStr | | RETURN | Subtitle |
Input
thys: | (Input) | Graph object. |
Returns
Description
Return plot subtitle
See Also
See other functions in this section
Availability
In release 6.4.0
Return plot title
Synopsis
Prototype
const char* ajGraphGetTitleC (
const AjPGraph thys
);
Type | Name | Read/Write | Description |
const AjPGraph | thys | Input | Graph object. |
const char* | | RETURN | Title |
Input
thys: | (Input) | Graph object. |
Returns
Description
Return plot title
See Also
See other functions in this section
Availability
In release 6.4.0
Return plot title
Synopsis
Prototype
const AjPStr ajGraphGetTitleS (
const AjPGraph thys
);
Type | Name | Read/Write | Description |
const AjPGraph | thys | Input | Graph object. |
const AjPStr | | RETURN | Title |
Input
thys: | (Input) | Graph object. |
Returns
Description
Return plot title
See Also
See other functions in this section
Availability
In release 6.4.0
Return plot x-axis label
Synopsis
Prototype
const char* ajGraphGetXlabelC (
const AjPGraph thys
);
Type | Name | Read/Write | Description |
const AjPGraph | thys | Input | Graph object. |
const char* | | RETURN | Title of x-axis |
Input
thys: | (Input) | Graph object. |
Returns
const char*: | Title of x-axis |
Description
Return plot x-axis label
See Also
See other functions in this section
Availability
In release 6.4.0
Return plot x-axis label
Synopsis
Prototype
const AjPStr ajGraphGetXlabelS (
const AjPGraph thys
);
Type | Name | Read/Write | Description |
const AjPGraph | thys | Input | Graph object. |
const AjPStr | | RETURN | Title of x-axis |
Input
thys: | (Input) | Graph object. |
Returns
const AjPStr: | Title of x-axis |
Description
Return plot x-axis label
See Also
See other functions in this section
Availability
In release 6.4.0
Return plot y-axis label
Synopsis
Prototype
const char* ajGraphGetYlabelC (
const AjPGraph thys
);
Type | Name | Read/Write | Description |
const AjPGraph | thys | Input | Graph object. |
const char* | | RETURN | Title of y-axis |
Input
thys: | (Input) | Graph object. |
Returns
const char*: | Title of y-axis |
Description
Return plot y-axis label
See Also
See other functions in this section
Availability
In release 6.4.0
Return plot y-axis label
Synopsis
Prototype
const AjPStr ajGraphGetYlabelS (
const AjPGraph thys
);
Type | Name | Read/Write | Description |
const AjPGraph | thys | Input | Graph object. |
const AjPStr | | RETURN | Title of y-axis |
Input
thys: | (Input) | Graph object. |
Returns
const AjPStr: | Title of y-axis |
Description
Return plot y-axis label
See Also
See other functions in this section
Availability
In release 6.4.0
returns ajTrue if the graph is creating a data file
Synopsis
Prototype
AjBool ajGraphIsData (
const AjPGraph thys
);
Type | Name | Read/Write | Description |
const AjPGraph | thys | Input | Graph object |
AjBool | | RETURN | ajTrue if the graph is of type data |
Input
Returns
AjBool: | ajTrue if the graph is of type data |
Description
returns ajTrue if the graph is creating a data file
See Also
See other functions in this section
Availability
In release 6.4.0
Plotting drawable objects
Functions: ajGraphAddLine ajGraphAddRect ajGraphAddTextC ajGraphAddTextS ajGraphAddTextScaleC ajGraphAddTextScaleS
Add a line to be drawn when the graph is plotted.
Synopsis
Prototype
void ajGraphAddLine (
AjPGraph thys,
float x,
float y,
float x2,
float y2,
ajint colour
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | Graph object |
float | x | Input | Start x position |
float | y | Input | Start y position |
float | x2 | Input | End x position |
float | y2 | Input | End y position |
ajint | colour | Input | Colour code (see PLPLOT) |
void | | RETURN | |
Input
x: | (Input) | Start x position |
y: | (Input) | Start y position |
x2: | (Input) | End x position |
y2: | (Input) | End y position |
colour: | (Input) | Colour code (see PLPLOT) |
Input & Output
thys: | (Modify) | Graph object |
Returns
Description
Add a line to be drawn when the graph is plotted.
See Also
See other functions in this section
Availability
In release 6.4.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 x,
float y,
float x2,
float y2,
ajint colour,
ajint fill
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | Graph object |
float | x | Input | Start x coordinate |
float | y | Input | Start y coordinate |
float | x2 | Input | End x coordinate |
float | y2 | Input | End y coordinate |
ajint | colour | Input | Colour code (see PLPLOT) |
ajint | fill | Input | Fill code (see PLPLOT) |
void | | RETURN | |
Input
x: | (Input) | Start x coordinate |
y: | (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.
See Also
See other functions in this section
Availability
In release 6.4.0
Add text to be drawn when the graph is plotted.
Synopsis
Prototype
void ajGraphAddTextC (
AjPGraph thys,
float x,
float y,
ajint colour,
const char* txt
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | Graph object |
float | x | Input | Start x position |
float | y | Input | Start y position |
ajint | colour | Input | Colour code (see PLPLOT) |
const char* | txt | Input | Text |
void | | RETURN | |
Input
x: | (Input) | Start x position |
y: | (Input) | Start y position |
colour: | (Input) | Colour code (see PLPLOT) |
txt: | (Input) | Text |
Input & Output
thys: | (Modify) | Graph object |
Returns
Description
Add text to be drawn when the graph is plotted.
See Also
See other functions in this section
Availability
In release 6.4.0
Add text to be drawn when the graph is plotted.
Synopsis
Prototype
void ajGraphAddTextS (
AjPGraph thys,
float x,
float y,
ajint colour,
const AjPStr str
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | Graph object |
float | x | Input | Start x position |
float | y | Input | Start y position |
ajint | colour | Input | Colour code (see PLPLOT) |
const AjPStr | str | Input | Text |
void | | RETURN | |
Input
x: | (Input) | Start x position |
y: | (Input) | Start y position |
colour: | (Input) | Colour code (see PLPLOT) |
str: | (Input) | Text |
Input & Output
thys: | (Modify) | Graph object |
Returns
Description
Add text to be drawn when the graph is plotted.
See Also
See other functions in this section
Availability
In release 6.4.0
Add text to be drawn when the graph is plotted.
Synopsis
Prototype
void ajGraphAddTextScaleC (
AjPGraph thys,
float x,
float y,
ajint colour,
float scale,
const char* txt
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | Graph object |
float | x | Input | Start x position |
float | y | Input | Start y position |
ajint | colour | Input | Colour code (see PLPLOT) |
float | scale | Input | Character scale (0.0 to use the default) |
const char* | txt | Input | Text |
void | | RETURN | |
Input
x: | (Input) | Start x position |
y: | (Input) | Start y position |
colour: | (Input) | Colour code (see PLPLOT) |
scale: | (Input) | Character scale (0.0 to use the default) |
txt: | (Input) | Text |
Input & Output
thys: | (Modify) | Graph object |
Returns
Description
Add text to be drawn when the graph is plotted.
See Also
See other functions in this section
Availability
In release 6.4.0
Add text to be drawn when the graph is plotted.
Synopsis
Prototype
void ajGraphAddTextScaleS (
AjPGraph thys,
float x,
float y,
ajint colour,
float scale,
const AjPStr str
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | Graph object |
float | x | Input | Start x position |
float | y | Input | Start y position |
ajint | colour | Input | Colour code (see PLPLOT) |
float | scale | Input | Character scale (0.0 to use the default) |
const AjPStr | str | Input | Text |
void | | RETURN | |
Input
x: | (Input) | Start x position |
y: | (Input) | Start y position |
colour: | (Input) | Colour code (see PLPLOT) |
scale: | (Input) | Character scale (0.0 to use the default) |
str: | (Input) | Text |
Input & Output
thys: | (Modify) | Graph object |
Returns
Description
Add text to be drawn when the graph is plotted.
See Also
See other functions in this section
Availability
In release 6.4.0
Tracing the internal values of a graph object
Functions: ajGraphTrace
Writes debug messages to trace the contents of a graph object.
Synopsis
Prototype
void ajGraphTrace (
const AjPGraph thys
);
Type | Name | Read/Write | Description |
const AjPGraph | thys | Input | Graph object |
void | | RETURN | |
Input
Returns
Description
Writes debug messages to trace the contents of a graph object.
See Also
See other functions in this section
Availability
In release 6.4.0
Functions to manage the graphdata objects associated with a graph object
Functions: ajGraphDataAdd ajGraphDataReplace ajGraphDataReplaceI
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
AjBool ajGraphDataAdd (
AjPGraph thys,
AjPGraphdata graphdata
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | multiple graph structure. |
AjPGraphdata | graphdata | Modify | graph to be added. |
AjBool | | RETURN | True if graph added successfully |
Input & Output
thys: | (Modify) | multiple graph structure. |
graphdata: | (Modify) | graph to be added. |
Returns
AjBool: | True if graph added successfully |
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.
See Also
See other functions in this section
Availability
In release 6.4.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
AjBool ajGraphDataReplace (
AjPGraph thys,
AjPGraphdata graphdata
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | multiple graph structure. |
AjPGraphdata | graphdata | Modify | graph to be added. |
AjBool | | RETURN | True if graph added successfully |
Input & Output
thys: | (Modify) | multiple graph structure. |
graphdata: | (Modify) | graph to be added. |
Returns
AjBool: | True if graph added successfully |
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.
See Also
See other functions in this section
Availability
In release 6.4.0
Replace one of the graph structures in the multiple graph structure.
The graphdata now belongs to the graph - do not delete it while
the graph is using it.
Synopsis
Prototype
AjBool ajGraphDataReplaceI (
AjPGraph thys,
AjPGraphdata graphdata,
ajuint num
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | multiple graph structure. |
AjPGraphdata | graphdata | Modify | graph to be added. |
ajuint | num | Input | number within multiple graph. |
AjBool | | RETURN | True if graph added successfully |
Input
num: | (Input) | number within multiple graph. |
Input & Output
thys: | (Modify) | multiple graph structure. |
graphdata: | (Modify) | graph to be added. |
Returns
AjBool: | True if graph added successfully |
Description
Replace one of the graph structures in the multiple graph structure.
The graphdata now belongs to the graph - do not delete it while
the graph is using it.
See Also
See other functions in this section
Availability
In release 6.4.0
Construct a new graph object to be populated by other functions
Functions: ajGraphxyNewI
Create a structure to hold a number of graphs.
Synopsis
Prototype
AjPGraph ajGraphxyNewI (
ajuint numsets
);
Type | Name | Read/Write | Description |
ajuint | numsets | Input | maximum number of graphs that can be stored. |
AjPGraph | | RETURN | multiple graph structure. |
Input
numsets: | (Input) | maximum number of graphs that can be stored. |
Returns
AjPGraph: | multiple graph structure. |
Description
Create a structure to hold a number of graphs.
See Also
See other functions in this section
Availability
In release 6.4.0
Destructors for AjGraph XY graph data
Functions: ajGraphxyDel
Destructor for a graph object
Synopsis
Prototype
void ajGraphxyDel (
AjPGraph* pthis
);
Type | Name | Read/Write | Description |
AjPGraph* | pthis | Output | Graph structure to store info in. |
void | | RETURN | |
Output
pthis: | (Output) | Graph structure to store info in. |
Returns
Description
Destructor for a graph object
See Also
See other functions in this section
Availability
In release 6.4.0
Functions to display or write the graph
Functions: ajGraphxyDisplay
A general routine for drawing graphs.
Synopsis
Prototype
void ajGraphxyDisplay (
AjPGraph thys,
AjBool closeit
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | Multiple graph pointer. |
AjBool | closeit | Input | Whether to close graph at the end. |
void | | RETURN | |
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.
See Also
See other functions in this section
Availability
In release 6.4.0
Set or modify internal values of an XY graph object
Functions: ajGraphxySetDevicetype ajGraphxySetMinmax ajGraphxySetRanges ajGraphxySetXendF ajGraphxySetXrangeII ajGraphxySetXstartF ajGraphxySetYendF ajGraphxySetYrangeII ajGraphxySetYstartF ajGraphxySetflagGaps ajGraphxySetflagOverlay ajGraphxyShowPointsCircle ajGraphxyShowPointsJoin ajGraphxyShowRaxis ajGraphxyShowUaxis ajGraphxyShowUnum ajGraphxyShowXaxis ajGraphxyShowXgrid ajGraphxyShowXinvert ajGraphxyShowXlabel ajGraphxyShowXtick ajGraphxyShowYaxis ajGraphxyShowYgrid ajGraphxyShowYinvert ajGraphxyShowYlabel ajGraphxyShowYnum ajGraphxyShowYtick
Initialize options for a graphxy object
Synopsis
Prototype
AjBool ajGraphxySetDevicetype (
AjPGraph thys,
const AjPStr devicetype
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | Graph object |
const AjPStr | devicetype | Input | Device type |
AjBool | | RETURN | ajTrue on success |
Input
devicetype: | (Input) | Device type |
Input & Output
thys: | (Modify) | Graph object |
Returns
Description
Initialize options for a graphxy object
See Also
See other functions in this section
Availability
In release 6.4.0
Set the max and min of the data points for all graphs.
Synopsis
Prototype
void ajGraphxySetMinmax (
AjPGraph thys,
float xmin,
float xmax,
float ymin,
float ymax
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | multiple graph structure. |
float | xmin | Input | x min. |
float | xmax | Input | x max. |
float | ymin | Input | y min. |
float | ymax | Input | y max. |
void | | RETURN | |
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.
See Also
See other functions in this section
Availability
In release 6.4.0
Calculate the max and min of the data points and store them.
See ajGraphxySetMaxmin for a function that defines explicit ranges
Synopsis
Prototype
void ajGraphxySetRanges (
AjPGraph thys
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | multiple graph structure. |
void | | RETURN | |
Input & Output
thys: | (Modify) | multiple graph structure. |
Returns
Description
Calculate the max and min of the data points and store them.
See ajGraphxySetMaxmin for a function that defines explicit ranges
See Also
See other functions in this section
Availability
In release 6.4.0
Set the end position for X in the graph.
Synopsis
Prototype
void ajGraphxySetXendF (
AjPGraph thys,
float val
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | Graph structure to store info in. |
float | val | Input | The end value for x graph coord |
void | | RETURN | |
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.
See Also
See other functions in this section
Availability
In release 6.4.0
Sets the X axis range with integers
Synopsis
Prototype
void ajGraphxySetXrangeII (
AjPGraph thys,
ajint start,
ajint end
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | Graph |
ajint | start | Input | start position |
ajint | end | Input | end position |
void | | RETURN | |
Input
start: | (Input) | start position |
end: | (Input) | end position |
Input & Output
Returns
Description
Sets the X axis range with integers
See Also
See other functions in this section
Availability
In release 6.4.0
Set the start position for X in the graph.
Synopsis
Prototype
void ajGraphxySetXstartF (
AjPGraph thys,
float val
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | Graph structure to store info in. |
float | val | Input | The start value for x graph coord. |
void | | RETURN | |
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.
See Also
See other functions in this section
Availability
In release 6.4.0
Set the end position for Y in the graph.
Synopsis
Prototype
void ajGraphxySetYendF (
AjPGraph thys,
float val
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | Graph structure to store info in. |
float | val | Input | The start value for y graph coord. |
void | | RETURN | |
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.
See Also
See other functions in this section
Availability
In release 6.4.0
Sets the Y axis range with integers
Synopsis
Prototype
void ajGraphxySetYrangeII (
AjPGraph thys,
ajint start,
ajint end
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | Graph |
ajint | start | Input | start position |
ajint | end | Input | end position |
void | | RETURN | |
Input
start: | (Input) | start position |
end: | (Input) | end position |
Input & Output
Returns
Description
Sets the Y axis range with integers
See Also
See other functions in this section
Availability
In release 6.4.0
Set the start position for Y in the graph.
Synopsis
Prototype
void ajGraphxySetYstartF (
AjPGraph thys,
float val
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | Graph structure to store info in. |
float | val | Input | The end value for y graph coord. |
void | | RETURN | |
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.
See Also
See other functions in this section
Availability
In release 6.4.0
Set whether the graphs should enable gaps.
Synopsis
Prototype
void ajGraphxySetflagGaps (
AjPGraph thys,
AjBool set
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | Multiple graph object |
AjBool | set | Input | if true allow gaps else do not. |
void | | RETURN | |
Input
set: | (Input) | if true allow gaps else do not. |
Input & Output
thys: | (Modify) | Multiple graph object |
Returns
Description
Set whether the graphs should enable gaps.
See Also
See other functions in this section
Availability
In release 6.4.0
Set whether the graphs should lay on top of each other.
Synopsis
Prototype
void ajGraphxySetflagOverlay (
AjPGraph thys,
AjBool set
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | Multiple graph object |
AjBool | set | Input | if true overlap else do not. |
void | | RETURN | |
Input
set: | (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.
See Also
See other functions in this section
Availability
In release 6.4.0
Set the graph to draw circles at the points.
Synopsis
Prototype
void ajGraphxyShowPointsCircle (
AjPGraph thys,
AjBool set
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | graph to have flag altered |
AjBool | set | Input | whether to set or turn off. |
void | | RETURN | |
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.
See Also
See other functions in this section
Availability
In release 6.4.0
Set the graph to draw lines between the points.
Synopsis
Prototype
void ajGraphxyShowPointsJoin (
AjPGraph thys,
AjBool set
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | graph to have flag altered |
AjBool | set | Input | whether to set or turn off. |
void | | RETURN | |
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.
See Also
See other functions in this section
Availability
In release 6.4.0
Set the graph is to display a right hand Y axis.
Synopsis
Prototype
void ajGraphxyShowRaxis (
AjPGraph thys,
AjBool set
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | graph to have flag altered |
AjBool | set | Input | whether to set or turn off. |
void | | RETURN | |
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.
See Also
See other functions in this section
Availability
In release 6.4.0
Set whether the graph is to display the left X axis at the top.
Synopsis
Prototype
void ajGraphxyShowUaxis (
AjPGraph thys,
AjBool set
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | graph to have flag altered |
AjBool | set | Input | whether to set or turn off. |
void | | RETURN | |
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.
See Also
See other functions in this section
Availability
In release 6.4.0
Set whether the graph is to display the labels on the upper x axis.
Synopsis
Prototype
void ajGraphxyShowUnum (
AjPGraph thys,
AjBool set
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | graph to have flag altered |
AjBool | set | Input | whether to set or turn off. |
void | | RETURN | |
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 upper x axis.
See Also
See other functions in this section
Availability
In release 6.4.0
Set whether the graph is to display a bottom x axis.
Synopsis
Prototype
void ajGraphxyShowXaxis (
AjPGraph thys,
AjBool set
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | graph to have flag altered |
AjBool | set | Input | whether to set or turn off. |
void | | RETURN | |
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.
See Also
See other functions in this section
Availability
In release 6.4.0
Set whether the graph is to grid the tick marks on the x axis.
Synopsis
Prototype
void ajGraphxyShowXgrid (
AjPGraph thys,
AjBool set
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | graph to have flag altered |
AjBool | set | Input | whether to set or turn off. |
void | | RETURN | |
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.
See Also
See other functions in this section
Availability
In release 6.4.0
Set whether the graph is to display the tick marks inside the plot on
the x axis.
Synopsis
Prototype
void ajGraphxyShowXinvert (
AjPGraph thys,
AjBool set
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | graph to have flag altered |
AjBool | set | Input | whether to set or turn off. |
void | | RETURN | |
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.
See Also
See other functions in this section
Availability
In release 6.4.0
Set whether the graph is to label the x axis.
Synopsis
Prototype
void ajGraphxyShowXlabel (
AjPGraph thys,
AjBool set
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | graph to have flag altered |
AjBool | set | Input | whether to set or turn off. |
void | | RETURN | |
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.
See Also
See other functions in this section
Availability
In release 6.4.0
Set whether the graph is to display tick marks on the x axis.
Synopsis
Prototype
void ajGraphxyShowXtick (
AjPGraph thys,
AjBool set
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | graph to have flag altered |
AjBool | set | Input | whether to set or turn off. |
void | | RETURN | |
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.
See Also
See other functions in this section
Availability
In release 6.4.0
Set whether the graph is to display the left Y axis.
Synopsis
Prototype
void ajGraphxyShowYaxis (
AjPGraph thys,
AjBool set
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | graph to have flag altered |
AjBool | set | Input | whether to set or turn off. |
void | | RETURN | |
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.
See Also
See other functions in this section
Availability
In release 6.4.0
Set whether the graph is to grid the tick marks on the x axis.
Synopsis
Prototype
void ajGraphxyShowYgrid (
AjPGraph thys,
AjBool set
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | graph to have flag altered |
AjBool | set | Input | whether to set or turn off. |
void | | RETURN | |
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.
See Also
See other functions in this section
Availability
In release 6.4.0
Set whether the graph is to display the tick marks inside the plot
on the y axis.
Synopsis
Prototype
void ajGraphxyShowYinvert (
AjPGraph thys,
AjBool set
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | graph to have flag altered |
AjBool | set | Input | whether to set or turn off. |
void | | RETURN | |
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.
See Also
See other functions in this section
Availability
In release 6.4.0
Set whether the graph is to label the y axis.
Synopsis
Prototype
void ajGraphxyShowYlabel (
AjPGraph thys,
AjBool set
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | graph to have flag altered |
AjBool | set | Input | whether to set or turn off. |
void | | RETURN | |
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.
See Also
See other functions in this section
Availability
In release 6.4.0
Set whether the graph is to display the numbers on the left Y axis.
Synopsis
Prototype
void ajGraphxyShowYnum (
AjPGraph thys,
AjBool set
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | graph to have flag altered |
AjBool | set | Input | whether to set or turn off. |
void | | RETURN | |
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 numbers on the left Y axis.
See Also
See other functions in this section
Availability
In release 6.4.0
Set the graph is to display tick marks on the y axis.
Synopsis
Prototype
void ajGraphxyShowYtick (
AjPGraph thys,
AjBool set
);
Type | Name | Read/Write | Description |
AjPGraph | thys | Modify | graph to have flag altered |
AjBool | set | Input | whether to set or turn off. |
void | | RETURN | |
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.
See Also
See other functions in this section
Availability
In release 6.4.0
Graph data object
Sections: Constructors Destructors Modifiers Plotting Debugging
Constructors for AjGraphdata plot data
Functions: ajGraphdataNew ajGraphdataNewI
Creates a new empty graph
Synopsis
Prototype
AjPGraphdata ajGraphdataNew (
void
);
Type | Name | Read/Write | Description |
AjPGraphdata | | RETURN | New empty graph |
Returns
AjPGraphdata: | New empty graph |
Description
Creates a new empty graph
See Also
See other functions in this section
Availability
In release 6.4.0
Create and initialise the data structure for the graph with a defined
number of data points.
Synopsis
Prototype
AjPGraphdata ajGraphdataNewI (
ajuint numofpoints
);
Type | Name | Read/Write | Description |
ajuint | numofpoints | Input | Number of points |
AjPGraphdata | | RETURN | Pointer to new graph structure. |
Input
numofpoints: | (Input) | Number of points |
Returns
AjPGraphdata: | Pointer to new graph structure. |
Description
Create and initialise the data structure for the graph with a defined
number of data points.
See Also
See other functions in this section
Availability
In release 6.4.0
Destructors for AjGraphdata plot data
Functions: ajGraphdataDel
Destructor for a graph data object
Synopsis
Prototype
void ajGraphdataDel (
AjPGraphdata* pthys
);
Type | Name | Read/Write | Description |
AjPGraphdata* | pthys | Delete | Graph data object |
void | | RETURN | |
Output
pthys: | (Delete) | Graph data object |
Returns
Description
Destructor for a graph data object
See Also
See other functions in this section
Availability
In release 6.4.0
Set or modify the internals of a graph data object
Functions: ajGraphdataSetColour ajGraphdataSetLinetype ajGraphdataSetMinmax ajGraphdataSetSubtitleC ajGraphdataSetSubtitleS ajGraphdataSetTitleC ajGraphdataSetTitleS ajGraphdataSetTruescale ajGraphdataSetTypeC ajGraphdataSetTypeS ajGraphdataSetXlabelC ajGraphdataSetXlabelS ajGraphdataSetYlabelC ajGraphdataSetYlabelS
Set the colour for the plot on one graph.
Synopsis
Prototype
void ajGraphdataSetColour (
AjPGraphdata graphdata,
ajint colour
);
Type | Name | Read/Write | Description |
AjPGraphdata | graphdata | Modify | Graph structure to store info in. |
ajint | colour | Input | colour for this plot. |
void | | RETURN | |
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.
See Also
See other functions in this section
Availability
In release 6.4.0
Set the line type for this graph.
Synopsis
Prototype
void ajGraphdataSetLinetype (
AjPGraphdata graphdata,
ajint type
);
Type | Name | Read/Write | Description |
AjPGraphdata | graphdata | Modify | Graph structure to store info in. |
ajint | type | Input | Set the line type. |
void | | RETURN | |
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.
See Also
See other functions in this section
Availability
In release 6.4.0
Set the max and min of the data points you wish to display.
Synopsis
Prototype
void ajGraphdataSetMinmax (
AjPGraphdata graphdata,
float xmin,
float xmax,
float ymin,
float ymax
);
Type | Name | Read/Write | Description |
AjPGraphdata | graphdata | Modify | multiple graph structure. |
float | xmin | Input | x min. |
float | xmax | Input | x max. |
float | ymin | Input | y min. |
float | ymax | Input | y max. |
void | | RETURN | |
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.
See Also
See other functions in this section
Availability
In release 6.4.0
Set the subtitle.
Synopsis
Prototype
void ajGraphdataSetSubtitleC (
AjPGraphdata graphdata,
const char* txt
);
Type | Name | Read/Write | Description |
AjPGraphdata | graphdata | Modify | Graph structure to store info in. |
const char* | txt | Input | Sub Title |
void | | RETURN | |
Input
Input & Output
graphdata: | (Modify) | Graph structure to store info in. |
Returns
Description
Set the subtitle.
See Also
See other functions in this section
Availability
In release 6.4.0
Set the Subtitle.
Synopsis
Prototype
void ajGraphdataSetSubtitleS (
AjPGraphdata graphdata,
const AjPStr str
);
Type | Name | Read/Write | Description |
AjPGraphdata | graphdata | Modify | Graph structure to store info in. |
const AjPStr | str | Input | Sub Title |
void | | RETURN | |
Input
Input & Output
graphdata: | (Modify) | Graph structure to store info in. |
Returns
Description
Set the Subtitle.
See Also
See other functions in this section
Availability
In release 6.4.0
Set the title.
Synopsis
Prototype
void ajGraphdataSetTitleC (
AjPGraphdata graphdata,
const char* txt
);
Type | Name | Read/Write | Description |
AjPGraphdata | graphdata | Modify | Graph structure to store info in. |
const char* | txt | Input | Title |
void | | RETURN | |
Input
Input & Output
graphdata: | (Modify) | Graph structure to store info in. |
Returns
Description
Set the title.
See Also
See other functions in this section
Availability
In release 6.4.0
Set the title.
Synopsis
Prototype
void ajGraphdataSetTitleS (
AjPGraphdata graphdata,
const AjPStr str
);
Type | Name | Read/Write | Description |
AjPGraphdata | graphdata | Modify | Graph structure to store info in. |
const AjPStr | str | Input | Title |
void | | RETURN | |
Input
Input & Output
graphdata: | (Modify) | Graph structure to store info in. |
Returns
Description
Set the title.
See Also
See other functions in this section
Availability
In release 6.4.0
Set the scale max and min of the data points you wish to display.
Synopsis
Prototype
void ajGraphdataSetTruescale (
AjPGraphdata graphdata,
float xmin,
float xmax,
float ymin,
float ymax
);
Type | Name | Read/Write | Description |
AjPGraphdata | graphdata | Modify | multiple graph structure. |
float | xmin | Input | true x min. |
float | xmax | Input | true x max. |
float | ymin | Input | true y min. |
float | ymax | Input | true y max. |
void | | RETURN | |
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.
See Also
See other functions in this section
Availability
In release 6.4.0
Set the type of the graph for data output.
Synopsis
Prototype
void ajGraphdataSetTypeC (
AjPGraphdata graphdata,
const char* txt
);
Type | Name | Read/Write | Description |
AjPGraphdata | graphdata | Modify | multiple graph structure. |
const char* | txt | Input | Type e.g. "2D Plot", "Histogram". |
void | | RETURN | |
Input
txt: | (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.
See Also
See other functions in this section
Availability
In release 6.4.0
Set the type of the graph for data output.
Synopsis
Prototype
void ajGraphdataSetTypeS (
AjPGraphdata graphdata,
const AjPStr str
);
Type | Name | Read/Write | Description |
AjPGraphdata | graphdata | Modify | multiple graph structure. |
const AjPStr | str | Input | Type e.g. "2D Plot", "Histogram". |
void | | RETURN | |
Input
str: | (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.
See Also
See other functions in this section
Availability
In release 6.4.0
Set the title for the X axis.
Synopsis
Prototype
void ajGraphdataSetXlabelC (
AjPGraphdata graphdata,
const char* txt
);
Type | Name | Read/Write | Description |
AjPGraphdata | graphdata | Modify | Graph structure to store info in. |
const char* | txt | Input | title for the X axis. |
void | | RETURN | |
Input
txt: | (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.
See Also
See other functions in this section
Availability
In release 6.4.0
Set the title for the X axis.
Synopsis
Prototype
void ajGraphdataSetXlabelS (
AjPGraphdata graphdata,
const AjPStr str
);
Type | Name | Read/Write | Description |
AjPGraphdata | graphdata | Modify | Graph structure to store info in. |
const AjPStr | str | Input | title for the X axis. |
void | | RETURN | |
Input
str: | (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.
See Also
See other functions in this section
Availability
In release 6.4.0
Set the title for the Y axis.
Synopsis
Prototype
void ajGraphdataSetYlabelC (
AjPGraphdata graphdata,
const char* txt
);
Type | Name | Read/Write | Description |
AjPGraphdata | graphdata | Modify | Graph structure to store info in. |
const char* | txt | Input | title for the Y axis. |
void | | RETURN | |
Input
txt: | (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.
See Also
See other functions in this section
Availability
In release 6.4.0
Set the title for the Y axis.
Synopsis
Prototype
void ajGraphdataSetYlabelS (
AjPGraphdata graphdata,
const AjPStr str
);
Type | Name | Read/Write | Description |
AjPGraphdata | graphdata | Modify | Graph structure to store info in. |
const AjPStr | str | Input | title for the Y axis. |
void | | RETURN | |
Input
str: | (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.
See Also
See other functions in this section
Availability
In release 6.4.0
Plotting drawable objects
Functions: ajGraphdataAddXY ajGraphdataAddposLine ajGraphdataAddposRect ajGraphdataAddposTextC ajGraphdataAddposTextS ajGraphdataAddposTextScaleC ajGraphdataAddposTextScaleS ajGraphdataCalcXY
Adds (x,y) data points defined in two floating point arrays
Synopsis
Prototype
void ajGraphdataAddXY (
AjPGraphdata graphdata,
const float* xx,
const float* yy
);
Type | Name | Read/Write | Description |
AjPGraphdata | graphdata | Modify | Graph object |
const float* | xx | Input | X coordinates |
const float* | yy | Input | Y coordinates |
void | | RETURN | |
Input
xx: | (Input) | X coordinates |
yy: | (Input) | Y coordinates |
Input & Output
graphdata: | (Modify) | Graph object |
Returns
Description
Adds (x,y) data points defined in two floating point arrays
See Also
See other functions in this section
Availability
In release 6.4.0
Add a line to be drawn when the graph is plotted.
Synopsis
Prototype
void ajGraphdataAddposLine (
AjPGraphdata graphdata,
float x,
float y,
float x2,
float y2,
ajint colour
);
Type | Name | Read/Write | Description |
AjPGraphdata | graphdata | Modify | Graph data object |
float | x | Input | Start x position |
float | y | Input | Start y position |
float | x2 | Input | End x position |
float | y2 | Input | End y position |
ajint | colour | Input | Colour code (see PLPLOT) |
void | | RETURN | |
Input
x: | (Input) | Start x position |
y: | (Input) | Start y position |
x2: | (Input) | End x position |
y2: | (Input) | End y position |
colour: | (Input) | Colour code (see PLPLOT) |
Input & Output
graphdata: | (Modify) | Graph data object |
Returns
Description
Add a line to be drawn when the graph is plotted.
See Also
See other functions in this section
Availability
In release 6.4.0
Add a Rectangle to be drawn when the graph is plotted, fill states whether
the rectangle should be filled in.
Synopsis
Prototype
void ajGraphdataAddposRect (
AjPGraphdata graphdata,
float x,
float y,
float x2,
float y2,
ajint colour,
ajint fill
);
Type | Name | Read/Write | Description |
AjPGraphdata | graphdata | Modify | Graph data object |
float | x | Input | Start x position |
float | y | Input | Start y position |
float | x2 | Input | End x position |
float | y2 | Input | End y position |
ajint | colour | Input | Colour code (see PLPLOT) |
ajint | fill | Input | Fill code (see PLPLOT) |
void | | RETURN | |
Input
x: | (Input) | Start x position |
y: | (Input) | Start y position |
x2: | (Input) | End x position |
y2: | (Input) | End y position |
colour: | (Input) | Colour code (see PLPLOT) |
fill: | (Input) | Fill code (see PLPLOT) |
Input & Output
graphdata: | (Modify) | Graph data object |
Returns
Description
Add a Rectangle to be drawn when the graph is plotted, fill states whether
the rectangle should be filled in.
See Also
See other functions in this section
Availability
In release 6.4.0
Add Text to be drawn when the graph is plotted.
Synopsis
Prototype
void ajGraphdataAddposTextC (
AjPGraphdata graphdata,
float x,
float y,
ajint colour,
const char* txt
);
Type | Name | Read/Write | Description |
AjPGraphdata | graphdata | Modify | Graph data object |
float | x | Input | Start x position |
float | y | Input | Start y position |
ajint | colour | Input | Colour code (see PLPLOT) |
const char* | txt | Input | Text to add
1 |
void | | RETURN | |
Input
x: | (Input) | Start x position |
y: | (Input) | Start y position |
colour: | (Input) | Colour code (see PLPLOT) |
txt: | (Input) | Text to add
1 |
Input & Output
graphdata: | (Modify) | Graph data object |
Returns
Description
Add Text to be drawn when the graph is plotted.
See Also
See other functions in this section
Availability
In release 6.4.0
Add Text to be drawn when the graph is plotted.
Synopsis
Prototype
void ajGraphdataAddposTextS (
AjPGraphdata graphdata,
float x,
float y,
ajint colour,
const AjPStr str
);
Type | Name | Read/Write | Description |
AjPGraphdata | graphdata | Modify | Graph data object |
float | x | Input | Start x position |
float | y | Input | Start y position |
ajint | colour | Input | Colour code (see PLPLOT) |
const AjPStr | str | Input | Text to add |
void | | RETURN | |
Input
x: | (Input) | Start x position |
y: | (Input) | Start y position |
colour: | (Input) | Colour code (see PLPLOT) |
str: | (Input) | Text to add |
Input & Output
graphdata: | (Modify) | Graph data object |
Returns
Description
Add Text to be drawn when the graph is plotted.
See Also
See other functions in this section
Availability
In release 6.4.0
Add Text to be drawn when the graph is plotted.
Synopsis
Prototype
void ajGraphdataAddposTextScaleC (
AjPGraphdata graphdata,
float x,
float y,
ajint colour,
float scale,
const char* txt
);
Type | Name | Read/Write | Description |
AjPGraphdata | graphdata | Modify | Graph data object |
float | x | Input | Start x position |
float | y | Input | Start y position |
ajint | colour | Input | Colour code (see PLPLOT) |
float | scale | Input | Character scale (0.0 to use the default) |
const char* | txt | Input | Text to add |
void | | RETURN | |
Input
x: | (Input) | Start x position |
y: | (Input) | Start y position |
colour: | (Input) | Colour code (see PLPLOT) |
scale: | (Input) | Character scale (0.0 to use the default) |
txt: | (Input) | Text to add |
Input & Output
graphdata: | (Modify) | Graph data object |
Returns
Description
Add Text to be drawn when the graph is plotted.
See Also
See other functions in this section
Availability
In release 6.4.0
Add Text to be drawn when the graph is plotted.
Synopsis
Prototype
void ajGraphdataAddposTextScaleS (
AjPGraphdata graphdata,
float x,
float y,
ajint colour,
float scale,
const AjPStr str
);
Type | Name | Read/Write | Description |
AjPGraphdata | graphdata | Modify | Graph data object |
float | x | Input | Start x position |
float | y | Input | Start y position |
ajint | colour | Input | Colour code (see PLPLOT) |
float | scale | Input | Character scale (0.0 to use the default) |
const AjPStr | str | Input | Text to add |
void | | RETURN | |
Input
x: | (Input) | Start x position |
y: | (Input) | Start y position |
colour: | (Input) | Colour code (see PLPLOT) |
scale: | (Input) | Character scale (0.0 to use the default) |
str: | (Input) | Text to add |
Input & Output
graphdata: | (Modify) | Graph data object |
Returns
Description
Add Text to be drawn when the graph is plotted.
See Also
See other functions in this section
Availability
In release 6.4.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 ajGraphdataCalcXY (
AjPGraphdata graphdata,
ajuint numofpoints,
float start,
float incr,
const float* y
);
Type | Name | Read/Write | Description |
AjPGraphdata | graphdata | Modify | Graph object |
ajuint | numofpoints | Input | Number of points in array |
float | start | Input | Start position |
float | incr | Input | Increment |
const float* | y | Input | Y coordinates |
void | | RETURN | |
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.
See Also
See other functions in this section
Availability
In release 6.4.0
Tracing the internal values of a graph data object
Functions: ajGraphdataTrace
Writes debug messages to trace the contents of a graphdata object.
Synopsis
Prototype
void ajGraphdataTrace (
const AjPGraphdata thys
);
Type | Name | Read/Write | Description |
const AjPGraphdata | thys | Input | Graphdata object |
void | | RETURN | |
Input
thys: | (Input) | Graphdata object |
Returns
Description
Writes debug messages to trace the contents of a graphdata object.
See Also
See other functions in this section
Availability
In release 6.4.0
Reporting internals
Sections: Reporting internals
Functions: ajGraphicsDumpDevices ajGraphicsGetOutfiles ajGraphicsListDevices ajGraphicsPrintType
Dump device options for a graph object
Synopsis
Prototype
void ajGraphicsDumpDevices (
void
);
Type | Name | Read/Write | Description |
void | | RETURN | |
Returns
Description
Dump device options for a graph object
See Also
See other functions in this section
Availability
In release 6.4.0
Information on files created for graph output
Synopsis
Prototype
ajuint ajGraphicsGetOutfiles (
AjPList* files
);
Type | Name | Read/Write | Description |
AjPList* | files | Output | List of graph files |
ajuint | | RETURN | Number of files (will match length of list) |
Output
files: | (Output) | List of graph files |
Returns
ajuint: | Number of files (will match length of list) |
Description
Information on files created for graph output
See Also
See other functions in this section
Availability
In release 6.4.0
Store device names for a graph object in a list
Synopsis
Prototype
void ajGraphicsListDevices (
AjPList list
);
Type | Name | Read/Write | Description |
AjPList | list | Output | List to write device names to. |
void | | RETURN | |
Output
list: | (Output) | List to write device names to. |
Returns
Description
Store device names for a graph object in a list
See Also
See other functions in this section
Availability
In release 6.4.0
Print graph types
Synopsis
Prototype
void ajGraphicsPrintType (
AjPFile outf,
AjBool full
);
Type | Name | Read/Write | Description |
AjPFile | outf | Modify | Output file |
AjBool | full | Input | Full report (usually ajFalse) |
void | | RETURN | |
Input
full: | (Input) | Full report (usually ajFalse) |
Input & Output
Returns
Description
Print graph types
See Also
See other functions in this section
Availability
In release 6.4.0
Dump device options for a graph object
Synopsis
Prototype
void ajGraphicsxyDumpDevices (
void
);
Type | Name | Read/Write | Description |
void | | RETURN | |
Returns
Description
Dump device options for a graph object
See Also
See other functions in this section
Availability
In release 6.4.0
Store device names for a graph object in a list
Synopsis
Prototype
void ajGraphicsxyListDevices (
AjPList list
);
Type | Name | Read/Write | Description |
AjPList | list | Output | List to write device names to. |
void | | RETURN | |
Output
list: | (Output) | List to write device names to. |
Returns
Description
Store device names for a graph object in a list
See Also
See other functions in this section
Availability
In release 6.4.0