11.72 Sample ‘lamerey

Function lamerey draw Lamerey diagram.

MGL code:

subplot 1 1 0 '<_':title 'Lamerey sample'
axis:xlabel '\i x':ylabel '\bar{\i x} = 2 \i{x}'
fplot 'x' 'k='
fplot '2*x' 'b'
lamerey 0.00097 '2*x' 'rv~';size 2
lamerey -0.00097 '2*x' 'rv~';size 2

C++ code:

void smgl_lamerey(mglGraph *gr)
{
	gr->SubPlot(1,1,0,"<_");
	if(big!=3)	gr->Title("Lamerey sample");
	gr->Axis();	gr->Label('x',"\\i x");	gr->Label('y',"\\bar{\\i x} = 2 \\i{x}");
	gr->FPlot("x","k=");	gr->FPlot("2*x","b");
	gr->Lamerey( 0.00097,"2*x","rv~");
	gr->Lamerey(-0.00097,"2*x","rv~");
}
Sample lamerey