#16378: list_plot throws a TypeError with complex lists
----------------------------+------------------------
       Reporter:  bradlys   |        Owner:  bradlys
           Type:  defect    |       Status:  new
       Priority:  major     |    Milestone:  sage-6.3
      Component:  graphics  |   Resolution:
       Keywords:            |    Merged in:
        Authors:            |    Reviewers:
Report Upstream:  N/A       |  Work issues:
         Branch:            |       Commit:
   Dependencies:            |     Stopgaps:
----------------------------+------------------------
Changes (by kcrisman):

 * cc: ppurka (added)
 * component:  packages: standard => graphics


Comment:

 It was basu, in #11787.
 {{{

 commit 603ea722edbbd46d2dcde0abb6c85f32ef6cdf18
 Author: Punarbasu Purkayastha <[email protected]>
 Date:   Fri Apr 19 15:56:20 2013 +0000

     allow numpy arrays in list_plot, line, points
 }}}
 He's very efficient and knowledgeable and it should not be hard to get a
 fix in soon, maybe even in 6.3.  The reason this wasn't caught is because
 {{{

     try:
         from sage.rings.all import RDF
         tmp = RDF(data[0])
         data = list(enumerate(data))

 }}}
 and in all the examples in the documentation, you ***can*** put the first
 element in the list into `RDF`!  So we should be more careful; any one
 element could be complex and that would be enough to need the enumerate.

--
Ticket URL: <http://trac.sagemath.org/ticket/16378#comment:9>
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to