| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
2.8.2 Vect3 sample
Function vect3 draw just usual vector field plot but at slices of 3D data. The sample code is:
int sample(mglGraph *gr)
{
mglData ex,ey,ez; mgls_prepare3v(&ex,&ey,&ez);
gr->SubPlot(2,1,0); gr->Title("Vect3 sample"); gr->SetOrigin(0,0,0);
gr->Rotate(50,60); gr->Axis("_xyz"); gr->Box();
gr->Vect3(ex,ey,ez,"x"); gr->Vect3(ex,ey,ez); gr->Vect3(ex,ey,ez,"z");
gr->SubPlot(2,1,1); gr->Title("'f' style");
gr->Rotate(50,60); gr->Axis("_xyz"); gr->Box();
gr->Vect3(ex,ey,ez,"fx"); gr->Vect3(ex,ey,ez,"f");gr->Vect3(ex,ey,ez,"fz");
gr->Grid3(ex,"Wx"); gr->Grid3(ex,"W"); gr->Grid3(ex,"Wz");
return 0;
}
This document was generated on March 21, 2014 using texi2html 5.0.
