These plotting functions draw two matrix simultaneously. There are 5 generally different types of data representations: surface or isosurface colored by other data (SurfC, Surf3C), surface or isosurface transpared by other data (SurfA, Surf3A), tiles with variable size (TileS), mapping diagram (Map), STFA diagram (STFA). By default (if absent) values of x, y, z are equidistantly distributed in axis range. The minor dimensions of arrays x, y, z, c should be equal. Arrays x, y (and z for Surf3C, Surf3A
) can be vectors (not matrices as c). String sch sets the color scheme (see Color scheme) for plot. String opt contain command options (see Command options).
zdat cdat ['sch'='']
¶xdat ydat zdat cdat ['sch'='']
¶mglGraph
: void
SurfC (const mglDataA &
z, const mglDataA &
c, const char *
sch=""
, const char *
opt=""
)
¶mglGraph
: void
SurfC (const mglDataA &
x, const mglDataA &
y, const mglDataA &
z, const mglDataA &
c, const char *
sch=""
, const char *
opt=""
)
¶void
mgl_surfc (HMGL
gr, HCDT
z, HCDT
c, const char *
sch, const char *
opt)
¶void
mgl_surfc_xy (HMGL
gr, HCDT
x, HCDT
y, HCDT
z, HCDT
c, const char *
sch, const char *
opt)
¶The function draws surface specified parametrically {x[i,j], y[i,j], z[i,j]} and color it by matrix c[i,j]. If string sch have symbol ‘#’ then grid lines are drawn. If string sch have symbol ‘.’ then plot by dots is produced. All dimensions of arrays z and c must be equal. Surface is plotted for each z slice of the data. See also surf, surfa, surfca, beltc, surf3c. See Sample ‘surfc’, for sample code and picture.
zdat cdat ['sch'='']
¶xdat ydat zdat cdat ['sch'='']
¶mglGraph
: void
BeltC (const mglDataA &
z, const mglDataA &
c, const char *
sch=""
, const char *
opt=""
)
¶mglGraph
: void
BeltC (const mglDataA &
x, const mglDataA &
y, const mglDataA &
z, const mglDataA &
c, const char *
sch=""
, const char *
opt=""
)
¶void
mgl_beltc (HMGL
gr, HCDT
z, const char *
sch, const char *
opt)
¶void
mgl_beltc_xy (HMGL
gr, HCDT
x, HCDT
y, HCDT
z, const char *
sch, const char *
opt)
¶The function draws belts for surface specified parametrically {x[i,j], y[i,j], z[i,j]} and color it by matrix c[i,j]. This plot can be used as 3d generalization of plot). If sch contain ‘x’ then belts are drawn along x-direction else (by default) belts are drawn along y-direction. See also belt, surfc, meshnum. See Sample ‘beltc’, for sample code and picture.
adat cdat val
['sch'='']
¶xdat ydat zdat adat cdat val
['sch'='']
¶mglGraph
: void
Surf3C (mreal
val, const mglDataA &
a, const mglDataA &
c, const char *
sch=""
, const char *
opt=""
)
¶mglGraph
: void
Surf3C (mreal
val, const mglDataA &
x, const mglDataA &
y, const mglDataA &
z, const mglDataA &
a, const mglDataA &
c, const char *
sch=""
, const char *
opt=""
)
¶void
mgl_surf3c_val (HMGL
gr, mreal
val, HCDT
a, HCDT
c, const char *
sch, const char *
opt)
¶void
mgl_surf3c_xyz_val (HMGL
gr, mreal
val, HCDT
x, HCDT
y, HCDT
z, HCDT
a, HCDT
c, const char *
sch, const char *
opt)
¶The function draws isosurface plot for 3d array specified parametrically a[i,j,k](x[i,j,k], y[i,j,k], z[i,j,k]) at a(x,y,z)=val. It is mostly the same as surf3 function but the color of isosurface depends on values of array c. If string sch contain ‘#’ then wire plot is produced. If string sch have symbol ‘.’ then plot by dots is produced. See also surf3, surfc, surf3a, surf3ca. See Sample ‘surf3c’, for sample code and picture.
adat cdat ['sch'='']
¶xdat ydat zdat adat cdat ['sch'='']
¶mglGraph
: void
Surf3C (const mglDataA &
a, const mglDataA &
c, const char *
sch=""
, const char *
opt=""
)
¶mglGraph
: void
Surf3C (const mglDataA &
x, const mglDataA &
y, const mglDataA &
z, const mglDataA &
a, const mglDataA &
c, const char *
sch=""
, const char *
opt=""
)
¶void
mgl_surf3c (HMGL
gr, HCDT
a, HCDT
c, const char *
sch, const char *
opt)
¶void
mgl_surf3c_xyz (HMGL
gr, HCDT
x, HCDT
y, HCDT
z, HCDT
a, HCDT
c, const char *
sch, const char *
opt)
¶Draws num-th uniformly distributed in color range isosurfaces for 3d data. Here num is equal to parameter value
in options opt (default is 3).
zdat cdat ['sch'='']
¶xdat ydat zdat cdat ['sch'='']
¶mglGraph
: void
SurfA (const mglDataA &
z, const mglDataA &
c, const char *
sch=""
, const char *
opt=""
)
¶mglGraph
: void
SurfA (const mglDataA &
x, const mglDataA &
y, const mglDataA &
z, const mglDataA &
c, const char *
sch=""
, const char *
opt=""
)
¶void
mgl_surfa (HMGL
gr, HCDT
z, HCDT
c, const char *
sch, const char *
opt)
¶void
mgl_surfa_xy (HMGL
gr, HCDT
x, HCDT
y, HCDT
z, HCDT
c, const char *
sch, const char *
opt)
¶The function draws surface specified parametrically {x[i,j], y[i,j], z[i,j]} and transparent it by matrix c[i,j]. If string sch have symbol ‘#’ then grid lines are drawn. If string sch have symbol ‘.’ then plot by dots is produced. All dimensions of arrays z and c must be equal. Surface is plotted for each z slice of the data. See also surf, surfc, surfca, surf3a. See Sample ‘surfa’, for sample code and picture.
adat cdat val
['sch'='']
¶xdat ydat zdat adat cdat val
['sch'='']
¶mglGraph
: void
Surf3A (mreal
val, const mglDataA &
a, const mglDataA &
c, const char *
sch=""
, const char *
opt=""
)
¶mglGraph
: void
Surf3A (mreal
val, const mglDataA &
x, const mglDataA &
y, const mglDataA &
z, const mglDataA &
a, const mglDataA &
c, const char *
sch=""
, const char *
opt=""
)
¶void
mgl_surf3a_val (HMGL
gr, mreal
val, HCDT
a, HCDT
c, const char *
sch, const char *
opt)
¶void
mgl_surf3a_xyz_val (HMGL
gr, mreal
val, HCDT
x, HCDT
y, HCDT
z, HCDT
a, HCDT
c, const char *
sch, const char *
opt)
¶The function draws isosurface plot for 3d array specified parametrically a[i,j,k](x[i,j,k], y[i,j,k], z[i,j,k]) at a(x,y,z)=val. It is mostly the same as surf3 function but the transparency of isosurface depends on values of array c. If string sch contain ‘#’ then wire plot is produced. If string sch have symbol ‘.’ then plot by dots is produced. See also surf3, surfc, surf3a, surf3ca. See Sample ‘surf3a’, for sample code and picture.
adat cdat ['sch'='']
¶xdat ydat zdat adat cdat ['sch'='']
¶mglGraph
: void
Surf3A (const mglDataA &
a, const mglDataA &
c, const char *
sch=""
, const char *
opt=""
)
¶mglGraph
: void
Surf3A (const mglDataA &
x, const mglDataA &
y, const mglDataA &
z, const mglDataA &
a, const mglDataA &
c, const char *
sch=""
, const char *
opt=""
)
¶void
mgl_surf3a (HMGL
gr, HCDT
a, HCDT
c, const char *
sch, const char *
opt)
¶void
mgl_surf3a_xyz (HMGL
gr, HCDT
x, HCDT
y, HCDT
z, HCDT
a, HCDT
c, const char *
sch, const char *
opt)
¶Draws num-th uniformly distributed in color range isosurfaces for 3d data. At this array c can be vector with values of transparency and num=c.nx. In opposite case num is equal to parameter value
in options opt (default is 3).
zdat cdat adat ['sch'='']
¶xdat ydat zdat cdat adat ['sch'='']
¶mglGraph
: void
SurfCA (const mglDataA &
z, const mglDataA &
c, const mglDataA &
a, const char *
sch=""
, const char *
opt=""
)
¶mglGraph
: void
SurfCA (const mglDataA &
x, const mglDataA &
y, const mglDataA &
z, const mglDataA &
c, const mglDataA &
a, const char *
sch=""
, const char *
opt=""
)
¶void
mgl_surfca (HMGL
gr, HCDT
z, HCDT
c, HCDT
a, const char *
sch, const char *
opt)
¶void
mgl_surfca_xy (HMGL
gr, HCDT
x, HCDT
y, HCDT
z, HCDT
c, HCDT
a, const char *
sch, const char *
opt)
¶The function draws surface specified parametrically {x[i,j], y[i,j], z[i,j]}, color it by matrix c[i,j] and transparent it by matrix a[i,j]. If string sch have symbol ‘#’ then grid lines are drawn. If string sch have symbol ‘.’ then plot by dots is produced. All dimensions of arrays z and c must be equal. Surface is plotted for each z slice of the data. Note, you can use map-like coloring if use ‘%’ in color scheme. See also surf, surfc, surfa, surf3ca. See Sample ‘surfca’, for sample code and picture.
adat cdat bdat val
['sch'='']
¶xdat ydat zdat adat cdat bdat val
['sch'='']
¶mglGraph
: void
Surf3CA (mreal
val, const mglDataA &
a, const mglDataA &
c, const mglDataA &
b, const char *
sch=""
, const char *
opt=""
)
¶mglGraph
: void
Surf3CA (mreal
val, const mglDataA &
x, const mglDataA &
y, const mglDataA &
z, const mglDataA &
a, const mglDataA &
c, const mglDataA &
b, const char *
sch=""
, const char *
opt=""
)
¶void
mgl_surf3ca_val (HMGL
gr, mreal
val, HCDT
a, HCDT
c, HCDT
b, const char *
sch, const char *
opt)
¶void
mgl_surf3ca_xyz_val (HMGL
gr, mreal
val, HCDT
x, HCDT
y, HCDT
z, HCDT
a, HCDT
c, HCDT
b,const char *
sch, const char *
opt)
¶The function draws isosurface plot for 3d array specified parametrically a[i,j,k](x[i,j,k], y[i,j,k], z[i,j,k]) at a(x,y,z)=val. It is mostly the same as surf3 function but the color and the transparency of isosurface depends on values of array c and b correspondingly. If string sch contain ‘#’ then wire plot is produced. If string sch have symbol ‘.’ then plot by dots is produced. Note, you can use map-like coloring if use ‘%’ in color scheme. See also surf3, surfca, surf3c, surf3a. See Sample ‘surf3ca’, for sample code and picture.
adat cdat bdat ['sch'='']
¶xdat ydat zdat adat cdat bdat ['sch'='']
¶mglGraph
: void
Surf3CA (const mglDataA &
a, const mglDataA &
c, const mglDataA &
b, const char *
sch=""
, const char *
opt=""
)
¶mglGraph
: void
Surf3CA (const mglDataA &
x, const mglDataA &
y, const mglDataA &
z, const mglDataA &
a, const mglDataA &
c, const mglDataA &
b, const char *
sch=""
, const char *
opt=""
)
¶void
mgl_surf3ca (HMGL
gr, HCDT
a, HCDT
c, HCDT
b, const char *
sch, const char *
opt)
¶void
mgl_surf3ca_xyz (HMGL
gr, HCDT
x, HCDT
y, HCDT
z, HCDT
a, HCDT
c, HCDT
b, const char *
sch, const char *
opt)
¶Draws num-th uniformly distributed in color range isosurfaces for 3d data. Here parameter num is equal to parameter value
in options opt (default is 3).
zdat rdat ['sch'='']
¶xdat ydat zdat rdat ['sch'='']
¶xdat ydat zdat rdat cdat ['sch'='']
¶mglGraph
: void
TileS (const mglDataA &
z, const mglDataA &
c, const char *
sch=""
, const char *
opt=""
)
¶mglGraph
: void
TileS (const mglDataA &
x, const mglDataA &
y, const mglDataA &
z, const mglDataA &
r, const char *
sch=""
, const char *
opt=""
)
¶mglGraph
: void
TileS (const mglDataA &
x, const mglDataA &
y, const mglDataA &
z, const mglDataA &
r, const mglDataA &
c, const char *
sch=""
, const char *
opt=""
)
¶void
mgl_tiles (HMGL
gr, HCDT
z, HCDT
c, const char *
sch, const char *
opt)
¶void
mgl_tiles_xy (HMGL
gr, HCDT
x, HCDT
y, HCDT
z, HCDT
r, const char *
sch, const char *
opt)
¶void
mgl_tiles_xyc (HMGL
gr, HCDT
x, HCDT
y, HCDT
z, HCDT
r, HCDT
c, const char *
sch, const char *
opt)
¶The function draws horizontal tiles for surface specified parametrically {x[i,j], y[i,j], z[i,j]} and color it by matrix c[i,j]. It is mostly the same as tile but the size of tiles is determined by r array. If string sch contain style ‘x’ or ‘y’ then tiles will be oriented perpendicular to x- or y-axis. This is some kind of “transparency” useful for exporting to EPS files. Tiles is plotted for each z slice of the data. See also surfa, tile. See Sample ‘tiles’, for sample code and picture.
udat vdat ['sch'='']
¶xdat ydat udat vdat ['sch'='']
¶mglGraph
: void
Map (const mglDataA &
ax, const mglDataA &
ay, const char *
sch=""
, const char *
opt=""
)
¶mglGraph
: void
Map (const mglDataA &
x, const mglDataA &
y, const mglDataA &
ax, const mglDataA &
ay, const char *
sch=""
, const char *
opt=""
)
¶void
mgl_map (HMGL
gr, HCDT
ax, HCDT
ay, const char *
sch, const char *
opt)
¶void
mgl_map_xy (HMGL
gr, HCDT
x, HCDT
y, HCDT
ax, HCDT
ay, const char *
sch, const char *
opt)
¶The function draws mapping plot for matrices {ax, ay } which parametrically depend on coordinates x, y. The initial position of the cell (point) is marked by color. Height is proportional to Jacobian(ax,ay). This plot is like Arnold diagram ??? If string sch contain symbol ‘.’ then the color ball at matrix knots are drawn otherwise face is drawn. See Mapping visualization, for sample code and picture.
re im dn
['sch'='']
¶xdat ydat re im dn
['sch'='']
¶mglGraph
: void
STFA (const mglDataA &
re, const mglDataA &
im, int
dn, const char *
sch=""
, const char *
opt=""
)
¶mglGraph
: void
STFA (const mglDataA &
x, const mglDataA &
y, const mglDataA &
re, const mglDataA &
im, int
dn, const char *
sch=""
, const char *
opt=""
)
¶void
mgl_stfa (HMGL
gr, HCDT
re, HCDT
im, int
dn, const char *
sch, const char *
opt)
¶void
mgl_stfa_xy (HMGL
gr, HCDT
x, HCDT
y, HCDT
re, HCDT
im, int
dn, const char *
sch, const char *
opt)
¶Draws spectrogram of complex array re+i*im for Fourier size of dn points at plane z equal to minimal z-axis value. For example in 1D case, result is density plot of data res[i,j]=|\sum_d^dn exp(I*j*d)*(re[i*dn+d]+I*im[i*dn+d])|/dn with size {int(nx/dn), dn, ny}. At this array re, im parametrically depend on coordinates x, y. The size of re and im must be the same. The minor dimensions of arrays x, y, re should be equal. Arrays x, y can be vectors (not matrix as re). See Sample ‘stfa’, for sample code and picture.