Seems to be a bug with implicit_plot which seems incomplete in the way it handles colors. For now, a workaround is the following (since your f1 and f2 are symbolic expressions):
t1 = implicit_plot(f1, (-3, 6), (-3, 3),fill=True,incol="red") I have opened http://trac.sagemath.org/ticket/16325 to track this. On Sunday, May 11, 2014 3:49:01 PM UTC+8, Dominique Laurain wrote: > > Implicit plot (2D) in cell sagews worksheet. > > Region of first circle (function f1) is not red colored. Is there any > explanation I missed ? > > I checked before posting in SAGE help ("Contour plots") : parameter color > is for the "plot color" but in case of region (fill = true), I believed > color would be applied to the plot (the border) or the region. > > f1(x,y) = x^2 + y^2 - 2 > f2(x,y) = (x-3)^2 + y^2 - 2 > t1 = implicit_plot(f1, (-3, 6), (-3, 3),fill=True,color="red") > t2 = implicit_plot(f2, (-3, 6), (-3, 3),fill=False,color="red") > (t1+t2).show() > > Dominique. > > PS: not to simple, to doctest "visual results" (request for library of > bitmap files as doctest results ; use UNIX cmp to compare ; image results > can be displayed by toggle button in SAGE help webpages) > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
