#12676: plot exclude sometimes just connects instead of excluding
------------------------+---------------------------------------------------
Reporter: kcrisman | Owner: jason, was
Type: defect | Status: new
Priority: major | Milestone: sage-5.0
Component: graphics | Keywords:
Work_issues: | Upstream: N/A
Reviewer: | Author:
Merged: | Dependencies:
------------------------+---------------------------------------------------
Comment(by kcrisman):
Note
{{{
sage: [pi..2*pi,3*pi..4*pi]
[pi, pi + 1, pi + 2, pi + 3, 3*pi, 3*pi + 1, 3*pi + 2, 3*pi + 3]
}}}
So the following allows us to see more clearly what is going on.
Compare
{{{
sage:
plot(sin(x)^cos(x),(x,0,4*pi),exclude=[pi..2*pi,3*pi..4*pi],ticks=[[pi..2*pi,3*pi..4*pi],None])
}}}
to
{{{
sage:
plot(sin(x)^cos(x),(x,0,4*pi-.1),exclude=[pi..2*pi,3*pi..4*pi],ticks=[[pi..2*pi,3*pi..4*pi],None])
}}}
to
{{{
sage:
plot(sin(x)^cos(x),(x,0,6*pi),exclude=[pi..2*pi,3*pi..4*pi,5*pi..6*pi],ticks=[[pi..2*pi,3*pi..4*pi,5*pi..6*pi],None])
}}}
Another couple to compare:
{{{
sage: plot(sin(pi*x)^cos(pi*x),(x,0,4),exclude=[3,4],ymax=20)
sage: plot(sin(pi*x)^cos(pi*x),(x,0,4),exclude=[1,2,3,4],ymax=20)
}}}
which really shows that there is something subtle about the points
involved when we have parts that can't be plotted due to not being real.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12676#comment:2>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.