I have done it this way which is easier p1 = arc((0,0),2,angle=pi/6,sector=(pi/3,8*pi/6),thickness=2,color='red') p2 = arc((0,0),2,angle=pi/6,sector=(pi/3,-4*pi/6),color="blue",thickness=2) p3 = arc((0,-1),1,angle=pi/6,sector=(pi/3,8*pi/6),thickness=2,color="blue") p4 = arc((0,1),1,angle=pi/6,sector=(pi/3,-4*pi/6),color="red",thickness=2) show(p1+p2+p3+p4,figsize=5)
On 30/11/2019 09:14, Henri Girard wrote:
Hi, I have done this taiji but it's horizontal and I would like it vertical ? I can't do it Any help ? Kind regards Henri Girard def f(x): if x<0: return sqrt(-x^2-2*x) else: return -sqrt(-x^2+2*x) a=plot(f,(x,-2,2),color='grey',fill=sqrt(4-x^2), fillcolor="black") xy=circle((0,0),2,color="white") b=plot(f,(x,-2,2),color="white",fill=-sqrt(4-x^2), fillcolor="red") show(a+b+xy)
-- 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 view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/986a4223-b945-bbe1-3c04-1ad704dbaafe%40gmail.com.