ajhist.c
Display the histogram.
Synopsis
Prototype
void ajHistDisplay (
const AjPHist hist
);
| Type | Name | Read/Write | Description |
| const AjPHist | hist | Input | Histogram Structure. |
| void | | RETURN | |
Input
| hist: | (Input) | Histogram Structure. |
Returns
Description
Display the histogram.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 5.0.0
Closes the histograms window.
Synopsis
Prototype
void ajHistClose (
void
);
| Type | Name | Read/Write | Description |
| void | | RETURN | |
Returns
Description
Closes the histograms window.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 5.0.0
Delete and free all memory associated with the histogram.
Does not delete the graph.
Synopsis
Prototype
void ajHistDelete (
AjPHist* phist
);
| Type | Name | Read/Write | Description |
| AjPHist* | phist | Delete | Histogram to be deleted. |
| void | | RETURN | |
Output
| phist: | (Delete) | Histogram to be deleted. |
Returns
Description
Delete and free all memory associated with the histogram.
Does not delete the graph.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 5.0.0
Create a histogram Object. Which can hold "numofsets" set of data of which
all must have "numofpoints" data points in them.
Synopsis
Prototype
AjPHist ajHistNew (
ajint numofsets,
ajint numofpoints
);
| Type | Name | Read/Write | Description |
| ajint | numofsets | Input | Number of sets of data. |
| ajint | numofpoints | Input | Number of data points per set. |
| AjPHist | | RETURN | histogram structure. |
Input
| numofsets: | (Input) | Number of sets of data. |
| numofpoints: | (Input) | Number of data points per set. |
Returns
| AjPHist: | histogram structure. |
Description
Create a histogram Object. Which can hold "numofsets" set of data of which
all must have "numofpoints" data points in them.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 5.0.0
Create a histogram Object which has the histogram data and graph data
storage capacity.
Synopsis
Prototype
AjPHist ajHistNewG (
ajint numofsets,
ajint numofpoints,
AjPGraph graph
);
| Type | Name | Read/Write | Description |
| ajint | numofsets | Input | Number of sets of data. |
| ajint | numofpoints | Input | Number of data points per set. |
| AjPGraph | graph | Modify | Graph object, device, multi and name are set.
The orignial AjPGraph object will be used
by the AjPHist |
| AjPHist | | RETURN | histogram structure. |
Input
| numofsets: | (Input) | Number of sets of data. |
| numofpoints: | (Input) | Number of data points per set. |
Input & Output
| graph: | (Modify) | Graph object, device, multi and name are set.
The orignial AjPGraph object will be used
by the AjPHist |
Returns
| AjPHist: | histogram structure. |
Description
Create a histogram Object which has the histogram data and graph data
storage capacity.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 5.0.0
Set ptr for title for index'th set..
Synopsis
Prototype
void ajHistSetMultiTitle (
AjPHist hist,
ajint indexnum,
const AjPStr title
);
| Type | Name | Read/Write | Description |
| AjPHist | hist | Modify | Histogram to have ptr set. |
| ajint | indexnum | Input | Index for the set number. |
| const AjPStr | title | Input | Title. |
| void | | RETURN | |
Input
| indexnum: | (Input) | Index for the set number. |
| title: | (Input) | Title. |
Input & Output
| hist: | (Modify) | Histogram to have ptr set. |
Returns
Description
Set ptr for title for index'th set..
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 5.0.0
Store title for the index'th set.
Synopsis
Prototype
void ajHistSetMultiTitleC (
AjPHist hist,
ajint indexnum,
const char* title
);
| Type | Name | Read/Write | Description |
| AjPHist | hist | Modify | Histogram to have ptr set. |
| ajint | indexnum | Input | Index for the set number. |
| const char* | title | Input | Title. |
| void | | RETURN | |
Input
| indexnum: | (Input) | Index for the set number. |
| title: | (Input) | Title. |
Input & Output
| hist: | (Modify) | Histogram to have ptr set. |
Returns
Description
Store title for the index'th set.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 5.0.0
Set ptr for X axis title for index'th set..
Synopsis
Prototype
void ajHistSetMultiXTitle (
AjPHist hist,
ajint indexnum,
const AjPStr title
);
| Type | Name | Read/Write | Description |
| AjPHist | hist | Modify | Histogram to have ptr set. |
| ajint | indexnum | Input | Index for the set number. |
| const AjPStr | title | Input | x Title. |
| void | | RETURN | |
Input
| indexnum: | (Input) | Index for the set number. |
| title: | (Input) | x Title. |
Input & Output
| hist: | (Modify) | Histogram to have ptr set. |
Returns
Description
Set ptr for X axis title for index'th set..
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 5.0.0
Store X axis title for the index'th set.
Synopsis
Prototype
void ajHistSetMultiXTitleC (
AjPHist hist,
ajint indexnum,
const char* title
);
| Type | Name | Read/Write | Description |
| AjPHist | hist | Modify | Histogram to have ptr set. |
| ajint | indexnum | Input | Index for the set number. |
| const char* | title | Input | x Title. |
| void | | RETURN | |
Input
| indexnum: | (Input) | Index for the set number. |
| title: | (Input) | x Title. |
Input & Output
| hist: | (Modify) | Histogram to have ptr set. |
Returns
Description
Store X axis title for the index'th set.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 5.0.0
Set ptr for Y axis title for index'th set..
Synopsis
Prototype
void ajHistSetMultiYTitle (
AjPHist hist,
ajint indexnum,
const AjPStr title
);
| Type | Name | Read/Write | Description |
| AjPHist | hist | Modify | Histogram to have ptr set. |
| ajint | indexnum | Input | Index for the set number. |
| const AjPStr | title | Input | Y Title. |
| void | | RETURN | |
Input
| indexnum: | (Input) | Index for the set number. |
| title: | (Input) | Y Title. |
Input & Output
| hist: | (Modify) | Histogram to have ptr set. |
Returns
Description
Set ptr for Y axis title for index'th set..
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 5.0.0
Store Y axis title for the index'th set.
Synopsis
Prototype
void ajHistSetMultiYTitleC (
AjPHist hist,
ajint indexnum,
const char* title
);
| Type | Name | Read/Write | Description |
| AjPHist | hist | Modify | Histogram to have ptr set. |
| ajint | indexnum | Input | Index for the set number. |
| const char* | title | Input | Y Title. |
| void | | RETURN | |
Input
| indexnum: | (Input) | Index for the set number. |
| title: | (Input) | Y Title. |
Input & Output
| hist: | (Modify) | Histogram to have ptr set. |
Returns
Description
Store Y axis title for the index'th set.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 5.0.0
Set ptr to data for a set of data points for index'th set..
Synopsis
Prototype
void ajHistSetPtrToData (
AjPHist hist,
ajint indexnum,
PLFLT* data
);
| Type | Name | Read/Write | Description |
| AjPHist | hist | Modify | Histogram to have ptr set. |
| ajint | indexnum | Input | Index for the set number. |
| PLFLT* | data | Modify | Ptr to the data. Will now be used by the AjPHist |
| void | | RETURN | |
Input
| indexnum: | (Input) | Index for the set number. |
Input & Output
| hist: | (Modify) | Histogram to have ptr set. |
| data: | (Modify) | Ptr to the data. Will now be used by the AjPHist |
Returns
Description
Set ptr to data for a set of data points for index'th set..
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 5.0.0
Copy data from data ptr to histogram for index'th set.
Synopsis
Prototype
void ajHistCopyData (
AjPHist hist,
ajint indexnum,
const PLFLT* data
);
| Type | Name | Read/Write | Description |
| AjPHist | hist | Modify | Histogram to have ptr set. |
| ajint | indexnum | Input | Index for the set number. |
| const PLFLT* | data | Input | Ptr to the data. |
| void | | RETURN | |
Input
| indexnum: | (Input) | Index for the set number. |
| data: | (Input) | Ptr to the data. |
Input & Output
| hist: | (Modify) | Histogram to have ptr set. |
Returns
Description
Copy data from data ptr to histogram for index'th set.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 5.0.0
Copy Title for the histogram.
Synopsis
Prototype
void ajHistSetTitleC (
AjPHist hist,
const char* strng
);
| Type | Name | Read/Write | Description |
| AjPHist | hist | Modify | histogram to set string in. |
| const char* | strng | Input | text to be copied. |
| void | | RETURN | |
Input
| strng: | (Input) | text to be copied. |
Input & Output
| hist: | (Modify) | histogram to set string in. |
Returns
Description
Copy Title for the histogram.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 5.0.0
Store X axis label for the histogram
Synopsis
Prototype
void ajHistSetXAxisC (
AjPHist hist,
const char* strng
);
| Type | Name | Read/Write | Description |
| AjPHist | hist | Modify | histogram to set string in. |
| const char* | strng | Input | text to be copied. |
| void | | RETURN | |
Input
| strng: | (Input) | text to be copied. |
Input & Output
| hist: | (Modify) | histogram to set string in. |
Returns
Description
Store X axis label for the histogram
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 5.0.0
Store Y Axis Left Label for the histogram
Synopsis
Prototype
void ajHistSetYAxisLeftC (
AjPHist hist,
const char* strng
);
| Type | Name | Read/Write | Description |
| AjPHist | hist | Modify | histogram to set string in. |
| const char* | strng | Input | text to be copied. |
| void | | RETURN | |
Input
| strng: | (Input) | text to be copied. |
Input & Output
| hist: | (Modify) | histogram to set string in. |
Returns
Description
Store Y Axis Left Label for the histogram
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 5.0.0
Store Y Axis Right Label for the histogram
Synopsis
Prototype
void ajHistSetYAxisRightC (
AjPHist hist,
const char* strng
);
| Type | Name | Read/Write | Description |
| AjPHist | hist | Modify | histogram to set string in. |
| const char* | strng | Input | text to be copied. |
| void | | RETURN | |
Input
| strng: | (Input) | text to be copied. |
Input & Output
| hist: | (Modify) | histogram to set string in. |
Returns
Description
Store Y Axis Right Label for the histogram
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 5.0.0
Set colour for bars in histogram for index'th set.
Synopsis
Prototype
void ajHistSetColour (
AjPHist hist,
ajint indexnum,
ajint colour
);
| Type | Name | Read/Write | Description |
| AjPHist | hist | Modify | Histogram to have ptr set. |
| ajint | indexnum | Input | Index for the set number. |
| ajint | colour | Input | Colour for bar set. |
| void | | RETURN | |
Input
| indexnum: | (Input) | Index for the set number. |
| colour: | (Input) | Colour for bar set. |
Input & Output
| hist: | (Modify) | Histogram to have ptr set. |
Returns
Description
Set colour for bars in histogram for index'th set.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 5.0.0
Set colour for bars in histogram for index'th set.
Synopsis
Prototype
void ajHistSetPattern (
AjPHist hist,
ajint indexnum,
ajint style
);
| Type | Name | Read/Write | Description |
| AjPHist | hist | Modify | Histogram to have ptr set. |
| ajint | indexnum | Input | Index for the set number. |
| ajint | style | Input | Line style number for bar set. |
| void | | RETURN | |
Input
| indexnum: | (Input) | Index for the set number. |
| style: | (Input) | Line style number for bar set. |
Input & Output
| hist: | (Modify) | Histogram to have ptr set. |
Returns
Description
Set colour for bars in histogram for index'th set.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 5.0.0
Set patterns instead of colours for printing to B/W printers etc.
Synopsis
Prototype
void ajHistSetBlackandWhite (
AjPHist hist,
AjBool set
);
| Type | Name | Read/Write | Description |
| AjPHist | hist | Modify | Histogram to have ptr set. |
| AjBool | set | Input | Set to use patterns or colour for filling. |
| void | | RETURN | |
Input
| set: | (Input) | Set to use patterns or colour for filling. |
Input & Output
| hist: | (Modify) | Histogram to have ptr set. |
Returns
Description
Set patterns instead of colours for printing to B/W printers etc.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 5.0.0