Function contv draw vertical cylinders (belts) at contour lines.
MGL code:
call 'prepare2d' list v -0.5 -0.15 0 0.15 0.5 subplot 2 2 0:title 'ContV plot (default)':rotate 50 60:box:contv a subplot 2 2 1:title 'manual levels':rotate 50 60:box:contv v a subplot 2 2 2:title '"\_" style':rotate 50 60:box:contv a '_' subplot 2 2 3:title 'ContV and ContF':rotate 50 60:light on:box contv a:contf a:cont a 'k'
C++ code:
void smgl_contv(mglGraph *gr) { mglData a,v(5); mgls_prepare2d(&a); v.a[0]=-0.5; v.a[1]=-0.15; v.a[2]=0; v.a[3]=0.15; v.a[4]=0.5; if(big!=3) { gr->SubPlot(2,2,0); gr->Title("ContV plot (default)"); } gr->Rotate(50,60); gr->Box(); gr->ContV(a); if(big==3) return; gr->SubPlot(2,2,1); gr->Title("manual levels"); gr->Rotate(50,60); gr->Box(); gr->ContV(v,a); gr->SubPlot(2,2,2); gr->Title("'\\_' style"); gr->Rotate(50,60); gr->Box(); gr->ContV(a,"_"); gr->SubPlot(2,2,3); gr->Title("ContV and ContF"); gr->Rotate(50,60); gr->Box(); gr->Light(true); gr->ContV(a); gr->ContF(a); gr->Cont(a,"k"); }