// Graphique pour les Sciences, avec barres d'erreur import graph; size(8cm,6cm,IgnoreAspect); 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)); xaxis("$x$",BottomTop,LeftTicks); yaxis("$y$",LeftRight,RightTicks); legendmargin=5; attach(legend(),point(S),30S);