#13246: Automatic exclusion of non-domain points in things like arcsec
----------------------------+-----------------------------------------------
       Reporter:  kcrisman  |         Owner:  jason, was
           Type:  defect    |        Status:  new       
       Priority:  major     |     Milestone:  sage-5.3  
      Component:  graphics  |    Resolution:            
       Keywords:            |   Work issues:            
Report Upstream:  N/A       |     Reviewers:            
        Authors:            |     Merged in:            
   Dependencies:            |      Stopgaps:            
----------------------------+-----------------------------------------------

Comment (by ddrake):

 Here's an idea I thought of that would help avoid these ugly situations.
 The problem is that we build our plot out of lots of tiny line segments,
 and we have a line segment connecting things that it should not connect.
 So:

 Let `w = xmax - xmin`. After building the list of `(x,y)` points for the
 plot, go through the `x`s. If the difference between any two consecutive
 `x` values is "too big", don't connect them.

 Since going through the list would be expensive and rarely needed, we
 would only do this with a keyword, say `detect_gaps`. If set to `True`, it
 would default to ignoring gaps of, say, `0.01*w`. Otherwise, the user
 could specify a proportion: `detect_gaps=0.05` or whatever. This procedure
 would only run if `detect_gaps` was `True` or a number between 0 and 1.

 Does that seem reasonable? That would fix the original problem at the cost
 of a little speed.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13246#comment:4>
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.

Reply via email to