ajhist.c

Datatypes:
none Histogram internals
AjPHist Histogram object


Datatype: none

Function is for controlling the histogram internals without using an AjPGraph object

Sections:
modifiersModifiers


Section: modifiers

Controlling the internals

Functions:
ajHistogramCloseCloses the histograms window.
ajHistogramSetMarkSet the histogram mark internal value


Function ajHistogramClose

Closes the histograms window.

Prototype

void ajHistogramClose (
      void
);

TypeNameRead/WriteDescription
void RETURN

From EMBOSS 6.2.0


Function ajHistogramSetMark

Set the histogram mark internal value

Prototype

void ajHistogramSetMark (
      ajint mark
);

TypeNameRead/WriteDescription
ajintmarkInputMark value
void RETURN

From EMBOSS 6.2.0


Datatype: AjPHist

Function is for manipulating an AjPHist histogram object

Sections:
ConstructorsConstructors
DestructorsDestructors
DisplayGeneral use
modifiersModifiers
Histogram data managementModifiers


AjPHist: Constructors

Construct a new histogram object to be populated by other functions

Functions:
ajHistNewCreate a histogram Object. Which can hold "numofsets" set of data of which all must have "numofpoints" data points in them.
ajHistNewGCreate a histogram Object which has the histogram data and graph data storage capacity.


Function ajHistNew

Create a histogram Object. Which can hold "numofsets" set of data of which all must have "numofpoints" data points in them.

Prototype

AjPHist ajHistNew (
      ajuint numofsets,
      ajuint numofpoints
);

TypeNameRead/WriteDescription
ajuintnumofsetsInputNumber of sets of data.
ajuintnumofpointsInputNumber of data points per set.
AjPHist RETURNhistogram structure.

From EMBOSS 1.0.0


Function ajHistNewG

Create a histogram Object which has the histogram data and graph data storage capacity.

Prototype

AjPHist ajHistNewG (
      ajuint numofsets,
      ajuint numofpoints,
      AjPGraph graph
);

TypeNameRead/WriteDescription
ajuintnumofsetsInputNumber of sets of data.
ajuintnumofpointsInputNumber of data points per set.
AjPGraphgraphModifyGraph object, device, multi and name are set. The original AjPGraph object will be used by the AjPHist
AjPHist RETURNhistogram structure.

From EMBOSS 1.0.0


AjPHist: Destructors

Destructors for histogram objects

Functions:
ajHistDelDelete and free all memory associated with the histogram. Does not delete the graph.


Function ajHistDel

Delete and free all memory associated with the histogram. Does not delete the graph.

Prototype

void ajHistDel (
      AjPHist* phist
);

TypeNameRead/WriteDescription
AjPHist*phistDeleteHistogram to be deleted.
void RETURN

From EMBOSS 6.2.0


AjPHist: Display

Functions to display or write the histogram

Functions:
ajHistDisplayDisplay the histogram.


Function ajHistDisplay

Display the histogram.

Prototype

void ajHistDisplay (
      const AjPHist thys
);

TypeNameRead/WriteDescription
const AjPHistthysInputHistogram Structure.
void RETURN

From EMBOSS 1.0.0


AjPHist: modifiers

Controlling the internals

Functions:
ajHistSetMonoSet patterns instead of colours for printing to B/W printers etc.
ajHistSetRlabelCStore Y Axis Right Label for the histogram
ajHistSetTitleCCopy Title for the histogram.
ajHistSetXlabelCStore X axis label for the histogram
ajHistSetYlabelCStore Y Axis Left Label for the histogram
ajHistSetmultiColourSet colour for bars in histogram for index'th set.
ajHistSetmultiPatternSet colour for bars in histogram for one set.
ajHistSetmultiTitleCStore title for the index'th set.
ajHistSetmultiTitleSSet ptr for title for index'th set..
ajHistSetmultiXlabelCStore X axis title for the index'th set.
ajHistSetmultiXlabelSSet ptr for X axis title for index'th set..
ajHistSetmultiYlabelCStore Y axis title for the index'th set.
ajHistSetmultiYlabelSSet ptr for Y axis title for index'th set..


Function ajHistSetMono

Set patterns instead of colours for printing to B/W printers etc.

Prototype

void ajHistSetMono (
      AjPHist thys,
      AjBool set
);

TypeNameRead/WriteDescription
AjPHistthysModifyHistogram to have ptr set.
AjBoolsetInputSet to use patterns or colour for filling, false to reset to colour.
void RETURN

From EMBOSS 6.2.0


Function ajHistSetRlabelC

Store Y Axis Right Label for the histogram

Prototype

void ajHistSetRlabelC (
      AjPHist thys,
      const char* txt
);

TypeNameRead/WriteDescription
AjPHistthysModifyhistogram to set string in.
const char*txtInputtext to be copied.
void RETURN

From EMBOSS 6.2.0


Function ajHistSetTitleC

Copy Title for the histogram.

Prototype

void ajHistSetTitleC (
      AjPHist thys,
      const char* txt
);

TypeNameRead/WriteDescription
AjPHistthysModifyhistogram to set string in.
const char*txtInputtext to be copied.
void RETURN

From EMBOSS 1.0.0


Function ajHistSetXlabelC

Store X axis label for the histogram

Prototype

void ajHistSetXlabelC (
      AjPHist thys,
      const char* txt
);

TypeNameRead/WriteDescription
AjPHistthysModifyhistogram to set string in.
const char*txtInputtext to be copied.
void RETURN

From EMBOSS 6.2.0


Function ajHistSetYlabelC

Store Y Axis Left Label for the histogram

Prototype

void ajHistSetYlabelC (
      AjPHist thys,
      const char* txt
);

TypeNameRead/WriteDescription
AjPHistthysModifyhistogram to set string in.
const char*txtInputtext to be copied.
void RETURN

From EMBOSS 6.2.0


Function ajHistSetmultiColour

Set colour for bars in histogram for index'th set.

Prototype

void ajHistSetmultiColour (
      AjPHist thys,
      ajuint indexnum,
      ajint colour
);

TypeNameRead/WriteDescription
AjPHistthysModifyHistogram to have ptr set.
ajuintindexnumInputIndex for the set number.
ajintcolourInputColour for bar set.
void RETURN

From EMBOSS 6.2.0


Function ajHistSetmultiPattern

Set colour for bars in histogram for one set.

Prototype

void ajHistSetmultiPattern (
      AjPHist thys,
      ajuint indexnum,
      ajint style
);

TypeNameRead/WriteDescription
AjPHistthysModifyHistogram to have ptr set.
ajuintindexnumInputIndex for the set number.
ajintstyleInputLine style number for bar set.
void RETURN

From EMBOSS 6.2.0


Function ajHistSetmultiTitleC

Store title for the index'th set.

Prototype

void ajHistSetmultiTitleC (
      AjPHist thys,
      ajuint indexnum,
      const char* txt
);

TypeNameRead/WriteDescription
AjPHistthysModifyHistogram to have ptr set.
ajuintindexnumInputIndex for the set number.
const char*txtInputTitle.
void RETURN

From EMBOSS 6.2.0


Function ajHistSetmultiTitleS

Set ptr for title for index'th set..

Prototype

void ajHistSetmultiTitleS (
      AjPHist thys,
      ajuint indexnum,
      const AjPStr str
);

TypeNameRead/WriteDescription
AjPHistthysModifyHistogram to have ptr set.
ajuintindexnumInputIndex for the set number.
const AjPStrstrInputTitle.
void RETURN

From EMBOSS 6.2.0


Function ajHistSetmultiXlabelC

Store X axis title for the index'th set.

Prototype

void ajHistSetmultiXlabelC (
      AjPHist thys,
      ajuint indexnum,
      const char* txt
);

TypeNameRead/WriteDescription
AjPHistthysModifyHistogram to have ptr set.
ajuintindexnumInputIndex for the set number.
const char*txtInputx Title.
void RETURN

From EMBOSS 6.2.0


Function ajHistSetmultiXlabelS

Set ptr for X axis title for index'th set..

Prototype

void ajHistSetmultiXlabelS (
      AjPHist thys,
      ajuint indexnum,
      const AjPStr str
);

TypeNameRead/WriteDescription
AjPHistthysModifyHistogram to have ptr set.
ajuintindexnumInputIndex for the set number.
const AjPStrstrInputx Title.
void RETURN

From EMBOSS 6.2.0


Function ajHistSetmultiYlabelC

Store Y axis title for the index'th set.

Prototype

void ajHistSetmultiYlabelC (
      AjPHist thys,
      ajuint indexnum,
      const char* txt
);

TypeNameRead/WriteDescription
AjPHistthysModifyHistogram to have ptr set.
ajuintindexnumInputIndex for the set number.
const char*txtInputY Title.
void RETURN

From EMBOSS 6.2.0


Function ajHistSetmultiYlabelS

Set ptr for Y axis title for index'th set..

Prototype

void ajHistSetmultiYlabelS (
      AjPHist thys,
      ajuint indexnum,
      const AjPStr str
);

TypeNameRead/WriteDescription
AjPHistthysModifyHistogram to have ptr set.
ajuintindexnumInputIndex for the set number.
const AjPStrstrInputY Title.
void RETURN

From EMBOSS 6.2.0


AjPHist: Histogram data management

Functions to manage the data values associated with a histogram object

Functions:
ajHistDataAddSet internal pointer to data for a set of data points for one set.
ajHistDataCopyCopy data from data array to histogram for one set.


Function ajHistDataAdd

Set internal pointer to data for a set of data points for one set.

Prototype

void ajHistDataAdd (
      AjPHist thys,
      ajuint indexnum,
      PLFLT* data
);

TypeNameRead/WriteDescription
AjPHistthysModifyHistogram to have ptr set.
ajuintindexnumInputIndex for the set number.
PLFLT*dataModifyData values to be owned by the histogram object
void RETURN

From EMBOSS 6.2.0


Function ajHistDataCopy

Copy data from data array to histogram for one set.

Prototype

void ajHistDataCopy (
      AjPHist thys,
      ajuint indexnum,
      PLFLT const* srcdata
);

TypeNameRead/WriteDescription
AjPHistthysModifyHistogram to have ptr set.
ajuintindexnumInputIndex for the set number.
PLFLT const*srcdataInputData to be copied
void RETURN

From EMBOSS 6.2.0