Final and agreeing with you not enaugh smooth but it's ok for what I need. I can't use show() on texmacs because the it's an external windows.
Thanks again for your help :)
Henri

Sage]  def f(x):
    if x<0:
        return sqrt(-x^2-2*x)
    else:
        return -sqrt(-x^2+2*x)

Sage] a=plot(f,(x,-2,2),color='black',fill=sqrt(4-x^2),fillcolor="black")

Sage] b=plot(f,(x,-2,2),color='red',fill=-sqrt(4-x^2),fillcolor="red")

Sage]  plot(a+b,figsize=2,axes=False,aspect_ratio=1)




Le 25/03/2014 15:28, kcrisman a écrit :


On Tuesday, March 25, 2014 10:21:29 AM UTC-4, kcrisman wrote:


        But I need it in sagemath to get it well embedd in texmacs.
        After long trying I didn't not success, my main problem is
        conditions.
        If a good soul could do it for me all my thanks.
        Kind regards,
        HG


    Does
    
http://www.sagemath.org/doc/reference/plotting/sage/plot/contour_plot.html#sage.plot.contour_plot.region_plot
    
<http://www.sagemath.org/doc/reference/plotting/sage/plot/contour_plot.html#sage.plot.contour_plot.region_plot>
    help?


Okay, or http://sagecell.sagemath.org/?q=pwwdqz should help. Personally, I don't like this parametrization; it doesn't seem to look right at the origin, not smooth enough.
--
You received this message because you are subscribed to a topic in the Google Groups "sage-support" group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/sage-support/s0uAGNAVWtw/unsubscribe. To unsubscribe from this group and all its topics, send an email to sage-support+unsubscr...@googlegroups.com <mailto:sage-support+unsubscr...@googlegroups.com>. To post to this group, send email to sage-support@googlegroups.com <mailto: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.

Reply via email to