#.................................................................. #..................SAGE.CODE.USED.TO.BUILD......................... #..................THE.GRAPH.OF.A.COLORED......................... #.............................POINT................................. #.................................................................. #.....................PLEASE.FEEL.FREE............................. #.....................TO.SEND.COMMENTS............................. #.................................................................. #..............Sage.is.a.free.open-source.......................... #..............mathematics.software.system......................... #................licensed.under.the.GPL............................ #...............http://www.sagemath.org/........................... #.................................................................. t=0.7 x=-0.19 y=-0.56 P=(x,y) X=(x,0) Y=(0,y) epsH=(0,0.1) epsV=(0.1,0) g=Graphics() g+=point(P,rgbcolor=hue(t*1/100)) g+=line([X,P],linestyle=':') g+=line([Y,P],linestyle=':') g+=text(str(x.n(digits=3)),X,vertical_alignment='bottom') g+=text(str(y.n(digits=3)),Y,horizontal_alignment='left') g.save('repere_point.png',xmin=-0.3,xmax=0.3,ymin=-0.6,ymax=0.3)