On Sun, Sep 28, 2014 at 3:43 AM, Christophe Bal <projet...@gmail.com> wrote: > 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')
Also, plot(line([(0, -3), (4, 13)]), color='grey') really makes no sense. Just do line([(0, -3), (4, 13)], color='grey') The plot command is supposed to plot functions, like x^2-3. > > 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. -- William Stein Professor of Mathematics University of Washington http://wstein.org wst...@uw.edu -- 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.