#8004: region_plot does not handle lambda functions
------------------------+---------------------------------------------------
   Reporter:  jason     |       Owner:  was       
       Type:  defect    |      Status:  new       
   Priority:  major     |   Milestone:  sage-4.3.1
  Component:  graphics  |    Keywords:            
     Author:            |    Upstream:  N/A       
   Reviewer:            |      Merged:            
Work_issues:            |  
------------------------+---------------------------------------------------
 {{{
 sage: sage: region_plot(lambda x,y: x>y, (-4,4), (-4,4))
 ---------------------------------------------------------------------------
 AttributeError                            Traceback (most recent call
 last)

 /mnt/usb1/scratch/jason/sage-4.3.1.rc1-x86_64-Linux/devel/sage-
 main/sage/<ipython console> in <module>()

 /mnt/usb1/scratch/jason/sage-4.3.1.rc1-x86_64-Linux/local/lib/python2.6
 /site-packages/sage/plot/misc.pyc in wrapper(*args, **kwds)
     136                 options['__original_opts'] = kwds
     137             options.update(kwds)
 --> 138             return func(*args, **options)
     139
     140

 /mnt/usb1/scratch/jason/sage-4.3.1.rc1-x86_64-Linux/local/lib/python2.6
 /site-packages/sage/plot/contour_plot.pyc in region_plot(f, xrange,
 yrange, plot_points, incol, outcol, bordercol, borderstyle, borderwidth)
     561         f = [f]
     562
 --> 563     f = [equify(g) for g in f]
     564
     565     g, ranges = setup_for_eval_on_grid(f, [xrange, yrange],
 plot_points)

 /mnt/usb1/scratch/jason/sage-4.3.1.rc1-x86_64-Linux/local/lib/python2.6
 /site-packages/sage/plot/contour_plot.pyc in equify(f)
     626     import operator
     627     from sage.calculus.all import symbolic_expression
 --> 628     op = f.operator()
     629     if op is operator.gt or op is operator.ge:
     630         return symbolic_expression(f.rhs() - f.lhs())

 AttributeError: 'function' object has no attribute 'operator'
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8004>
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