Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I think that the current best way to deal with your issue is to know ahead of time what the domain is.

sage: plot(sqrt(sin(x)),(x,0,pi))+plot(sqrt(sin(x)),(x,2*pi,3*pi))

Which isn't ideal, but could be enough for you.

However, I agree that the current behavior looks pretty bad, so Ticket 11123 is now dedicated to this.

As another workaround, you could do

sage: plot(sqrt(sin(x)),(0,10),plot_points=40000)

but even that looks not the greatest, and takes forever.