Hello, The return value of the function line is a plot object. It is to that function that you need to specify your color... for example
sage: graphics = plot(x^2, (x,0,2)) sage: graphics += line2d([(0,0),(3,4)], color='red') sage: graphics.show() Vincent 2014-09-28 12:43 UTC+02:00, Christophe Bal <projet...@gmail.com>: > Hello. > > What am I doing wrong in the following code that display everything in blue > ? > > Christophe > > ---------- > > graphic = plot(x**2-3, xmin=0, xmax=4, ymin=-3, ymax=13) > > graphic += plot(line([(0, 0), (0, -3)]), color='red', linestyle="--") > graphic += plot(line([(4, 0), (4, 13)]), color='red', linestyle="--") > graphic += plot(line([(0, -3), (4, 13)]), color='grey') > > show(graphic) > > -- > You received this message because you are subscribed to the Google Groups > "sage-support" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-support+unsubscr...@googlegroups.com. > To post to this group, send email to sage-support@googlegroups.com. > Visit this group at http://groups.google.com/group/sage-support. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.