Functions contz, conty, contx draw contour lines on plane perpendicular to corresponding axis. One of possible application is drawing projections of 3D field.
MGL code:
call 'prepare3d' title 'Cont[XYZ] sample':rotate 50 60:box contx {sum c 'x'} '' -1:conty {sum c 'y'} '' 1:contz {sum c 'z'} '' -1
C++ code:
void smgl_cont_xyz(mglGraph *gr) { mglData c; mgls_prepare3d(&c); if(big!=3) gr->Title("Cont[XYZ] sample"); gr->Rotate(50,60); gr->Box(); gr->ContX(c.Sum("x"),"",-1); gr->ContY(c.Sum("y"),"",1); gr->ContZ(c.Sum("z"),"",-1); }