#16378: list_plot throws a TypeError with complex lists
----------------------------------+------------------------------------
   Reporter:  bradlys             |            Owner:
       Type:  defect              |           Status:  new
   Priority:  major               |        Milestone:  sage-6.3
  Component:  packages: standard  |         Keywords:
  Merged in:                      |          Authors:  Bradly Schlenker
  Reviewers:                      |  Report Upstream:  N/A
Work issues:                      |           Branch:
     Commit:                      |     Dependencies:
   Stopgaps:                      |
----------------------------------+------------------------------------
 Example of the issue on SageMathCloud.

 > L=[1+i,4+i,4+2*i,2+2*i,2+3*i,1+3*i,1+i]
 >list_plot(L,plotjoined=True,aspect_ratio=1)

 Error in lines 2-2
 Traceback (most recent call last):
   File "/projects/70e0e4f6-0afa-4aad-
 af80-07b2d31c1ec6/.sagemathcloud/sage_server.py", line 733, in execute
     exec compile(block+'\n', '', 'single') in namespace, locals
   File "", line 1, in <module>
   File "/usr/local/sage/sage-6.2.rc0/local/lib/python2.7/site-
 packages/sage/misc/decorators.py", line 550, in wrapper
     return func(*args, **options)
   File "/usr/local/sage/sage-6.2.rc0/local/lib/python2.7/site-
 packages/sage/plot/plot.py", line 1810, in list_plot
     data = [(z.real(), z.imag()) for z in [CC(z[1]) for z in data]]
 TypeError: 'sage.symbolic.expression.Expression' object does not support
 indexing

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