manpagez: man pages & more
info mathgl
Home | html | info | man
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.11.6 Cloud

Method on mglGraph (C++, Python): void Cloud (const mglData &x, const mglData &y, const mglData &z, const mglData &a, const char *stl="", float alpha=1)
C function: void mgl_cloud_xyz (HMGL gr, const HMDT x, const HMDT y, const HMDT z, const HMDT a, const char *stl, float alpha=1)

The function draws cloud plot for 3d data specified parametrically a[i,j,k](x[i,j,k], y[i,j,k], z[i,j,k]). This plot is a set of cubes with color and transparency proportional to value of a. The resulting plot is like cloud – low value is transparent but higher ones are not. The number of plotting cells depend on MeshNum (see section Other settings). String sch sets the color scheme. Previous color scheme is used by default. Parameter alpha changes the overall transparency of plot. The minor dimensions of arrays x, y, z must be equal. Arrays x, y, z can be vectors (not 3d arrays as a). See also Surf3. See section Cloud sample, for sample code and picture.

Method on mglGraph (C++, Python): void Cloud (const mglData &a, const char *stl="", float alpha=1)
C function: void mgl_cloud (HMGL gr, const HMDT a, const char *stl, float alpha=1)

The same as previous with x, y, z equidistantly distributed in interval [Min, Max].

Method on mglGraph (C++): void CloudP (const mglData &x, const mglData &y, const mglData &z, const mglData &a, const char *stl="", float alpha=1)
C function: void mgl_cloudp_xyz (HMGL gr, const HMDT x, const HMDT y, const HMDT z, const HMDT a, const char *stl, float alpha=1)

The same as first one but the semi-transparent points are used instead of cubes. See section CloudP sample, for sample code and picture.

Method on mglGraph (C++): void CloudP (const mglData &a, const char *stl="", float alpha=1)
C function: void mgl_cloudp (HMGL gr, const HMDT a, const char *stl, float alpha=1)

The same as previous with x, y, z equidistantly distributed in interval [Min, Max].


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]
© manpagez.com 2000-2024
Individual documents may contain additional copyright information.