import graph_pi; unitsize(1cm); // pour définir les pointillés (points espacés de 1mm) pen p=.3mm+.5white+linetype("0 "+ string(1mm),offset=0,scale=false,adjust=false); real xmin=-3, xmax=5, ymin=-2, ymax=4; grid(xmin, xmax, ymin, ymax, xStep=1, xstep=.5, yStep=1, ystep=.5, pTick=.7bp+.7white, ptick=p, above=false ); draw((xmin,0)--(xmax,0)^^(0,ymin)--(0,ymax), 1.2bp+0.5*blue); labeloij(p=1.7bp+.5*red, arrow=Arrow(SimpleHead,8bp), scale(2)*Mark(5) );