#14037: plot of piecewise defined function raises UnboundLocalError
----------------------------+-----------------------------------------------
       Reporter:  slabbe    |         Owner:  jason, was
           Type:  defect    |        Status:  new       
       Priority:  major     |     Milestone:  sage-5.10 
      Component:  graphics  |    Resolution:            
       Keywords:            |   Work issues:            
Report Upstream:  N/A       |     Reviewers:            
        Authors:            |     Merged in:            
   Dependencies:            |      Stopgaps:            
----------------------------+-----------------------------------------------

Comment (by nthiery):

 Probably a variation on the same theme:
 {{{
 sage:  plot(exp, 0,10,x,(x,0,10),color='green')
 verbose 0 (578: plot.py, plot) there were 4 extra arguments (besides exp)
 ---------------------------------------------------------------------------
 UnboundLocalError                         Traceback (most recent call
 last)
 <ipython-input-1-d893a3ab5a9f> in <module>()
 ----> 1 plot(exp,
 Integer(0),Integer(10),x,(x,Integer(0),Integer(10)),color='green')

 ...
 /opt/sage-5.10.beta2/local/lib/python2.7/site-packages/sage/plot/plot.pyc
 in plot(funcs, *args, **kwds)
    1140             sage.misc.misc.verbose("there were %s extra arguments
 (besides %s)" % (n, funcs), level=0)
    1141
 -> 1142     G._set_extra_kwds(G_kwds)
    1143     if do_show:
    1144         G.show()

 UnboundLocalError: local variable 'G' referenced before assignment
 }}}

 Reported by Isabelle Rouanet.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14037#comment:1>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to