#9744: implicit_plot fill option fills entire plot
----------------------------------------------+-----------------------------
   Reporter:  jason                           |          Owner:  jason, was     
                             
       Type:  defect                          |         Status:  needs_review   
                             
   Priority:  critical                        |      Milestone:  sage-5.0       
                             
  Component:  graphics                        |       Keywords:                 
                             
Work_issues:  fix lambda functions with fill  |       Upstream:  N/A            
                             
   Reviewer:  Karl-Dieter Crisman             |         Author:  Jason Grout, 
Michael Boratko, Benjamin Jones
     Merged:                                  |   Dependencies:                 
                             
----------------------------------------------+-----------------------------
Changes (by newvalueoldvalue):

  * status:  needs_work => needs_review
  * reviewer:  Benjamin Jones, Karl-Dieter Crisman => Karl-Dieter Crisman
  * author:  Jason Grout, Michael Boratko => Jason Grout, Michael Boratko,
             Benjamin Jones


Comment:

 I uploaded [attachment:trac_9744_v2.patch] which solves the main problem
 by calling `region_plot(lambda x,y: f(x,y)<0, ...)` instead of
 `region_plot(f<0, ...)`

 ...but it introduces a strange artefact. Try the following (this doesn't
 require applying the patch).

 {{{
 sage: region_plot(x^2+y^2-2<0, (x,-3,3), (y,-3,3))
 # looks normal
 sage: region_plot(lambda x,y: x^2+y^2-2<0, (x,-3,3), (y,-3,3))
 # looks ragged around the edges
 sage: region_plot(lambda x,y: x^2+y^2-2<0, (x,-3,3), (y,-3,3),
 plot_points=200)
 # better, but not great
 sage: region_plot(lambda x,y: x^2+y^2-2<0, (x,-3,3), (y,-3,3),
 plot_points=500)
 # looks about like the original, but takes a long time.
 }}}

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