\startMPinclusions



picture grid ;
grid :=
	image (
		width := 10 ;
		height := 10 ;
		draw vlingrid (0, 10, 1, width, height) withcolor .6white ;
		draw hlingrid (0, 10, 1, height, width ) withcolor .6white ;
		linecap := squared ;
	) ;


\stopMPinclusions


\startMPpage


% background grid
draw grid withpen pencircle scaled 1/20 ;


%%% THE PATH %%%

% straight lines are drawn with dashes --
draw (2,2) -- (3,3) -- (4,2)  withcolor red ;



currentpicture := currentpicture xsized 10cm ;


numeric u ; u := 1cm ;

% Origo
label ("0", (-1/4u,-1/4u)) ;


% Y axis
label ("1", (-1/4u,1u)) ;
label ("2", (-1/4u,2u)) ;
label ("3", (-1/4u,3u)) ;
label ("4", (-1/4u,4u)) ;
label ("5", (-1/4u,5u)) ;
label ("6", (-1/4u,6u)) ;
label ("7", (-1/4u,7u)) ;
label ("8", (-1/4u,8u)) ;
label ("9", (-1/4u,9u)) ;
label ("10", (-1/3u,10u)) ;

% Y axis
label ("1", (1u,-1/4u)) ;
label ("2", (2u,-1/4u)) ;
label ("3", (3u,-1/4u)) ;
label ("4", (4u,-1/4u)) ;
label ("5", (5u,-1/4u)) ;
label ("6", (6u,-1/4u)) ;
label ("7", (7u,-1/4u)) ;
label ("8", (8u,-1/4u)) ;
label ("9", (9u,-1/4u)) ;
label ("10", (10u,-1/4u)) ;


setbounds currentpicture to boundingbox currentpicture enlarged 1/2cm ;







		



\stopMPpage
