// Graphique pour les Sciences, avec barres d'erreur import graph; size(8cm,6cm); pair[] f={(5,4),(40,10),(50,20),(90,40)}; pair[] df={(0,0),(2,0),(5,7),(0,5)}; errorbars(f,df,red); draw(graph(f),"L\'egende", marker(scale(0.8mm)*unitcircle,red,FillDraw(blue),above=false)); scale(true); xaxis("$x$",BottomTop,LeftTicks); yaxis("$y$",LeftRight,RightTicks); legendmargin=5; pair p1=point(S), p2=truepoint(S); attach(legend(red),(p1.x,p2.y),10S); attach(legend(blue),p2,10S);