| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
4.15 Other plotting
These functions perform miscellaneous plotting. There is unstructured data points plots (Dots), surface reconstruction (Crust), surfaces on the triangular or quadrangular mesh (TriPlot, TriCont, QuadPlot), textual formula plotting (Plots by formula), data plots at edges (Dens[XYZ], Cont[XYZ], ContF[XYZ]). Each type of plotting has similar interface. There are 2 kind of versions which handle the arrays of data and coordinates or only single data array. Parameters of color scheme are specified by the string argument. See section Color scheme.
- MGL command: densx dat ['sch'=''
sval=nan] - MGL command: densy dat ['sch'=''
sval=nan] - MGL command: densz dat ['sch'=''
sval=nan] - Method on
mglGraph:voidDensX (const mglDataA &a,const char *stl="",mrealsVal=NAN,const char *opt="") - Method on
mglGraph:voidDensY (const mglDataA &a,const char *stl="",mrealsVal=NAN,const char *opt="") - Method on
mglGraph:voidDensZ (const mglDataA &a,const char *stl="",mrealsVal=NAN,const char *opt="") - C function:
voidmgl_dens_x (HMGLgr,HCDTa,const char *stl,mrealsVal,const char *opt) - C function:
voidmgl_dens_y (HMGLgr,HCDTa,const char *stl,mrealsVal,const char *opt) - C function:
voidmgl_dens_z (HMGLgr,HCDTa,const char *stl,mrealsVal,const char *opt) These plotting functions draw density plot in x, y, or z plain. If a is a tensor (3-dimensional data) then interpolation to a given sVal is performed. These functions are useful for creating projections of the 3D data array to the bounding box. See also ContXYZ, ContFXYZ, dens, Data manipulation. See section Dens projection sample, for sample code and picture.
- MGL command: contx dat ['sch'=''
sval=nan] - MGL command: conty dat ['sch'=''
sval=nan] - MGL command: contz dat ['sch'=''
sval=nan] - Method on
mglGraph:voidContX (const mglDataA &a,const char *stl="",mrealsVal=NAN,const char *opt="") - Method on
mglGraph:voidContY (const mglDataA &a,const char *stl="",mrealsVal=NAN,const char *opt="") - Method on
mglGraph:voidContZ (const mglDataA &a,const char *stl="",mrealsVal=NAN,const char *opt="") - C function:
voidmgl_cont_x (HMGLgr,HCDTa,const char *stl,mrealsVal,const char *opt) - C function:
voidmgl_cont_y (HMGLgr,HCDTa,const char *stl,mrealsVal,const char *opt) - C function:
voidmgl_cont_z (HMGLgr,HCDTa,const char *stl,mrealsVal,const char *opt) These plotting functions draw contour lines in x, y, or z plain. If a is a tensor (3-dimensional data) then interpolation to a given sVal is performed. These functions are useful for creating projections of the 3D data array to the bounding box. Option
valueset the number of contours. See also ContFXYZ, DensXYZ, cont, Data manipulation. See section Cont projection sample, for sample code and picture.
- Method on
mglGraph:voidContX (const mglDataA &v,const mglDataA &a,const char *stl="",mrealsVal=NAN,const char *opt="") - Method on
mglGraph:voidContY (const mglDataA &v,const mglDataA &a,const char *stl="",mrealsVal=NAN,const char *opt="") - Method on
mglGraph:voidContZ (const mglDataA &v,const mglDataA &a,const char *stl="",mrealsVal=NAN,const char *opt="") - C function:
voidmgl_cont_x_val (HMGLgr,HCDTv,HCDTa,const char *stl,mrealsVal,const char *opt) - C function:
voidmgl_cont_y_val (HMGLgr,HCDTv,HCDTa,const char *stl,mrealsVal,const char *opt) - C function:
voidmgl_cont_z_val (HMGLgr,HCDTv,HCDTa,const char *stl,mrealsVal,const char *opt) The same as previous with manual contour levels.
- MGL command: contfx dat ['sch'=''
sval=nan] - MGL command: contfy dat ['sch'=''
sval=nan] - MGL command: contfz dat ['sch'=''
sval=nan] - Method on
mglGraph:voidContFX (const mglDataA &a,const char *stl="",mrealsVal=NAN,const char *opt="") - Method on
mglGraph:voidContFY (const mglDataA &a,const char *stl="",mrealsVal=NAN,const char *opt="") - Method on
mglGraph:voidContFZ (const mglDataA &a,const char *stl="",mrealsVal=NAN,const char *opt="") - C function:
voidmgl_contf_x (HMGLgr,HCDTa,const char *stl,mrealsVal,const char *opt) - C function:
voidmgl_contf_y (HMGLgr,HCDTa,const char *stl,mrealsVal,const char *opt) - C function:
voidmgl_contf_z (HMGLgr,HCDTa,const char *stl,mrealsVal,const char *opt) These plotting functions draw solid contours in x, y, or z plain. If a is a tensor (3-dimensional data) then interpolation to a given sVal is performed. These functions are useful for creating projections of the 3D data array to the bounding box. Option
valueset the number of contours. See also ContFXYZ, DensXYZ, cont, Data manipulation. See section ContF projection sample, for sample code and picture.
- Method on
mglGraph:voidContFX (const mglDataA &v,const mglDataA &a,const char *stl="",mrealsVal=NAN,const char *opt="") - Method on
mglGraph:voidContFY (const mglDataA &v,const mglDataA &a,const char *stl="",mrealsVal=NAN,const char *opt="") - Method on
mglGraph:voidContFZ (const mglDataA &v,const mglDataA &a,const char *stl="",mrealsVal=NAN,const char *opt="") - C function:
voidmgl_contf_x_val (HMGLgr,HCDTv,HCDTa,const char *stl,mrealsVal,const char *opt) - C function:
voidmgl_contf_y_val (HMGLgr,HCDTv,HCDTa,const char *stl,mrealsVal,const char *opt) - C function:
voidmgl_contf_z_val (HMGLgr,HCDTv,HCDTa,const char *stl,mrealsVal,const char *opt) The same as previous with manual contour levels.
- MGL command: fplot 'y(x)' ['pen'='']
- Method on
mglGraph:voidFPlot (const char *eqY,const char *pen="",const char *opt="") - C function:
voidmgl_fplot (HMGLgr,const char *eqY,const char *pen,const char *opt) Draws command function ‘y(x)’ at plane z=Min.z where ‘x’ variable is changed in
xrange. You do not need to create the data arrays to plot it. Optionvalueset initial number of points. See also plot.
- MGL command: fplot 'x(t)' 'y(t)' 'z(t)' ['pen'='']
- Method on
mglGraph:voidFPlot (const char *eqX,const char *eqY,const char *eqZ,const char *pen,const char *opt="") - C function:
voidmgl_fplot_xyz (HMGLgr,const char *eqX,const char *eqY,const char *eqZ,const char *pen,const char *opt) Draws command parametrical curve {‘x(t)’, ‘y(t)’, ‘z(t)’} where ‘t’ variable is changed in range [0, 1]. You do not need to create the data arrays to plot it. Option
valueset number of points. See also plot.
- MGL command: fsurf 'z(x,y)' ['sch'='']
- Method on
mglGraph:voidFSurf (const char *eqZ,const char *sch="",const char *opt=""); - C function:
voidmgl_fsurf (HMGLgr,const char *eqZ,const char *sch,const char *opt); Draws command surface for function ‘z(x,y)’ where ‘x’, ‘y’ variable are changed in
xrange, yrange. You do not need to create the data arrays to plot it. Optionvalueset number of points. See also surf.
- MGL command: fsurf 'x(u,v)' 'y(u,v)' 'z(u,v)' ['sch'='']
- Method on
mglGraph:voidFSurf (const char *eqX,const char *eqY,const char *eqZ,const char *sch="",const char *opt="") - C function:
voidmgl_fsurf_xyz (HMGLgr,const char *eqX,const char *eqY,const char *eqZ,const char *sch,const char *opt) Draws command parametrical surface {‘x(u,v)’, ‘y(u,v)’, ‘z(u,v)’} where ‘u’, ‘v’ variable are changed in range [0, 1]. You do not need to create the data arrays to plot it. Option
valueset number of points. See also surf.
- MGL command: triplot idat xdat ydat ['sch'='']
- MGL command: triplot idat xdat ydat zdat ['sch'='']
- MGL command: triplot idat xdat ydat zdat cdat ['sch'='']
- Method on
mglGraph:voidTriPlot (const mglDataA &id,const mglDataA &x,const mglDataA &y,const char *sch="",const char *opt="") - Method on
mglGraph:voidTriPlot (const mglDataA &id,const mglDataA &x,const mglDataA &y,const mglDataA &z,const mglDataA &c,const char *sch="",const char *opt="") - Method on
mglGraph:voidTriPlot (const mglDataA &id,const mglDataA &x,const mglDataA &y,const mglDataA &z,const char *sch="",const char *opt="") - C function:
voidmgl_triplot_xy (HMGLgr,HCDTid,HCDTx,HCDTy,const char *sch,const char *opt) - C function:
voidmgl_triplot_xyz (HMGLgr,HCDTid,HCDTx,HCDTy,HCDTz,const char *sch,const char *opt) - C function:
voidmgl_triplot_xyzc (HMGLgr,HCDTid,HCDTx,HCDTy,HCDTz,HCDTc,const char *sch,const char *opt) The function draws the surface of triangles. Triangle vertexes are set by indexes id of data points {x[i], y[i], z[i]}. String sch sets the color scheme. If string contain ‘#’ then wire plot is produced. First dimensions of id must be 3 or greater. Arrays x, y, z must have equal sizes. Parameter c set the colors of triangles (if id.ny=c.nx) or colors of vertexes (if x.nx=c.nx). See also dots, crust, quadplot, triangulation. See section TriPlot and QuadPlot, for sample code and picture.
- MGL command: tricont vdat idat xdat ydat zdat cdat ['sch'='']
- MGL command: tricont vdat idat xdat ydat zdat ['sch'='']
- MGL command: tricont idat xdat ydat zdat ['sch'='']
- Method on
mglGraph:voidTriCont (const mglDataA &id,const mglDataA &x,const mglDataA &y,const mglDataA &z,const mglDataA &c,const char *sch="",const char *opt="") - Method on
mglGraph:voidTriCont (const mglDataA &id,const mglDataA &x,const mglDataA &y,const mglDataA &z,const char *sch="",const char *opt="") - Method on
mglGraph:voidTriContV (const mglDataA &v,const mglDataA &id,const mglDataA &x,const mglDataA &y,const mglDataA &z,const mglDataA &c,const char *sch="",const char *opt="") - Method on
mglGraph:voidTriContV (const mglDataA &v,const mglDataA &id,const mglDataA &x,const mglDataA &y,const mglDataA &z,const char *sch="",const char *opt="") - C function:
voidmgl_tricont_xyzc (HMGLgr,HCDTid,HCDTx,HCDTy,HCDTz,HCDTc,const char *sch,const char *opt) - C function:
voidmgl_tricont_xyz (HMGLgr,HCDTid,HCDTx,HCDTy,HCDTz,const char *sch,const char *opt) - C function:
voidmgl_tricont_xyzcv (HMGLgr,HCDTv,HCDTid,HCDTx,HCDTy,HCDTz,HCDTc,const char *sch,const char *opt) - C function:
voidmgl_tricont_xyzv (HMGLgr,HCDTv,HCDTid,HCDTx,HCDTy,HCDTz,const char *sch,const char *opt) The function draws contour lines for surface of triangles at z=v[k] (or at z = Min.z if sch contain symbol ‘_’). Triangle vertexes are set by indexes id of data points {x[i], y[i], z[i]}. Contours are plotted for z[i,j]=v[k] where v[k] are values of data array v. If v is absent then arrays of option
valueelements equidistantly distributed in color range is used. String sch sets the color scheme. Array c (if specified) is used for contour coloring. First dimensions of id must be 3 or greater. Arrays x, y, z must have equal sizes. Parameter c set the colors of triangles (if id.ny=c.nx) or colors of vertexes (if x.nx=c.nx). See also triplot, cont, triangulation.
- MGL command: quadplot idat xdat ydat ['sch'='']
- MGL command: quadplot idat xdat ydat zdat ['sch'='']
- MGL command: quadplot idat xdat ydat zdat cdat ['sch'='']
- Method on
mglGraph:voidQuadPlot (const mglDataA &id,const mglDataA &x,const mglDataA &y,const char *sch="",const char *opt="") - Method on
mglGraph:voidQuadPlot (const mglDataA &id,const mglDataA &x,const mglDataA &y,const mglDataA &z,const mglDataA &c,const char *sch="",const char *opt="") - Method on
mglGraph:voidQuadPlot (const mglDataA &id,const mglDataA &x,const mglDataA &y,const mglDataA &z,const char *sch="",const char *opt="") - C function:
voidmgl_quadplot_xy (HMGLgr,HCDTid,HCDTx,HCDTy,const char *sch,const char *opt) - C function:
voidmgl_quadplot_xyz (HMGLgr,HCDTid,HCDTx,HCDTy,HCDTz,const char *sch,const char *opt) - C function:
voidmgl_quadplot_xyzc (HMGLgr,HCDTid,HCDTx,HCDTy,HCDTz,HCDTc,const char *sch,const char *opt) The function draws the surface of quadrangles. Quadrangles vertexes are set by indexes id of data points {x[i], y[i], z[i]}. String sch sets the color scheme. If string contain ‘#’ then wire plot is produced. First dimensions of id must be 4 or greater. Arrays x, y, z must have equal sizes. Parameter c set the colors of quadrangles (if id.ny=c.nx) or colors of vertexes (if x.nx=c.nx). See also triplot. See section TriPlot and QuadPlot, for sample code and picture.
- MGL command: dots xdat ydat zdat ['sch'='']
- MGL command: dots xdat ydat zdat adat ['sch'='']
- Method on
mglGraph:voidDots (const mglDataA &x,const mglDataA &y,const mglDataA &z,const char *sch="",const char *opt="") - Method on
mglGraph:voidDots (const mglDataA &x,const mglDataA &y,const mglDataA &z,const mglDataA &a,const char *sch="",const char *opt="") - Method on
mglGraph:voidDots (const mglDataA &x,const mglDataA &y,const mglDataA &z,const mglDataA &c,const mglDataA &a,const char *sch="",const char *opt="") - C function:
voidmgl_dots (HMGLgr,HCDTx,HCDTy,HCDTz,const char *sch,const char *opt) - C function:
voidmgl_dots_a (HMGLgr,HCDTx,HCDTy,HCDTz,HCDTa,const char *sch,const char *opt) - C function:
voidmgl_dots_ca (HMGLgr,HCDTx,HCDTy,HCDTz,HCDTc,HCDTa,const char *sch,const char *opt) The function draws the arbitrary placed points {x[i], y[i], z[i]}. String sch sets the color scheme and kind of marks. If arrays c, a are specified then they define colors and transparencies of dots. You can use tens plot with style ‘ .’ to draw non-transparent dots with specified colors. Arrays x, y, z, a must have equal sizes. See also crust, tens, mark, plot. See section Dots sample, for sample code and picture.
- MGL command: crust xdat ydat zdat ['sch'='']
- Method on
mglGraph:voidCrust (const mglDataA &x,const mglDataA &y,const mglDataA &z,const char *sch="",const char *opt="") - C function:
voidmgl_crust (HMGLgr,HCDTx,HCDTy,HCDTz,const char *sch,const char *opt) The function reconstruct and draws the surface for arbitrary placed points {x[i], y[i], z[i]}. String sch sets the color scheme. If string contain ‘#’ then wire plot is produced. Arrays x, y, z must have equal sizes. See also dots, triplot.
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This document was generated on March 21, 2014 using texi2html 5.0.
