#16378: list_plot throws a TypeError with complex lists
-------------------------------------+-------------------------------------
       Reporter:  bradlys            |        Owner:  bradlys
           Type:  defect             |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.3
      Component:  graphics           |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Punarbasu          |    Reviewers:
  Purkayastha                        |  Work issues:
Report Upstream:  N/A                |       Commit:
         Branch:                     |  38b4ddd85921e5aadba71a3c227540bcdced001b
  u/ppurka/list_plot_throws_a_typeerror_with_complex_lists|     Stopgaps:
   Dependencies:                     |
-------------------------------------+-------------------------------------

Comment (by ppurka):

 Replying to [comment:13 kcrisman]:
 > I'm not sure I buy this, though.  What if the result is complex but not
 in the symbolic ring?  (Or are even things in CDF also in SR?)

 If it is complex but not in the symbolic ring, then it is automatically
 handled by `line()` and `point()` directly. These inputs are tested
 [https://github.com/sagemath/sage/blob/master/src/sage/plot/plot.py#L1701
 here],
 [https://github.com/sagemath/sage/blob/master/src/sage/plot/plot.py#L1692
 here], and possibly also in `line` and `point` docstrings.

 If they fail `tmp = RDF(data[0])`, they will be handled correctly by
 `line` and/or `point`. All I have done in the above patch is make sure
 `SR` is taken care of separately.

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