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

2.7.8 Dens projection sample

Functions densz, densy, densx draw density plot on plane perpendicular to corresponding axis. One of possible application is drawing projections of 3D field. The sample code is:

int sample(mglGraph *gr)
{
 mglData c; mgls_prepare3d(&c);
 gr->Title("Dens[XYZ] sample"); gr->Rotate(50,60);
 gr->Box(); gr->DensX(c.Sum("x"),0,-1);
 gr->DensY(c.Sum("y"),0,1); gr->DensZ(c.Sum("z"),0,-1);
 return 0;
}
Example of DensX() DensY() DensZ()

This document was generated on March 21, 2014 using texi2html 5.0.

© manpagez.com 2000-2025
Individual documents may contain additional copyright information.

AltStyle によって変換されたページ (->オリジナル) /