[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
3.16 Data distributions
These functions make distribution (histogram) of data. They do not draw the obtained data themselves. These functions can be useful if user have data defined for random points (for example, after PIC simulation) and he want to produce a plot which require regular data (defined on grid(s)). The range for grids is always selected as axis range Min...Max. Arrays x, y, z define the positions (coordinates) of random points. Array a define the data value. Number of points in output array res is selected as maximal value of res size and the value of FitPnts.
- Method on
mglGraph
(C++, Python):void
Hist (mglData &
res,const mglData &
x,const mglData &
a) - C function:
int
mgl_hist_x (HMGL
gr,HMDT
res,const HMDT
x,const HMDT
a) Creates 1D distribution of the data values a in range [Min, Max].
- Method on
mglGraph
(C++, Python):void
Hist (mglData &
res,const mglData &
x,const mglData &
y,const mglData &
a) - C function:
int
mgl_hist_xy (HMGL
gr,HMDT
res,const HMDT
x,const HMDT
y,const HMDT
a) Creates 2D distribution of the data values a in range [Min, Max].
- Method on
mglGraph
(C++, Python):void
Hist (mglData &
res,const mglData &
x,const mglData &
y,const mglData &
z,const mglData &
a) - C function:
int
mgl_hist_xyz (HMGL
gr,HMDT
res,const HMDT
x,const HMDT
y,const HMDT
z,const HMDT
a) Creates 3D distribution of the data values a in range [Min, Max].
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |