11.149 Sample ’venn’

Example of venn-like diagram.

MGL code:

list x -0.3 0 0.3:list y 0.3 -0.3 0.3:list e 0.7 0.7 0.7
subplot 1 1 0:title 'Venn-like diagram'
transptype 1:alpha on:error x y e e '!rgb@#o';alpha 0.1

C++ code:

void smgl_venn(mglGraph *gr)
{
	double xx[3]={-0.3,0,0.3}, yy[3]={0.3,-0.3,0.3}, ee[3]={0.7,0.7,0.7};
	mglData x(3,xx), y(3,yy), e(3,ee);
	gr->SubPlot(1,1,0);	gr->Title("Venn-like diagram");
	gr->SetTranspType(1);	gr->Alpha(true);	gr->Error(x,y,e,e,"!rgb@#o","alpha 0.1");
}
Sample venn