#11787: error in creating graphics with numpy arrays
-----------------------------------------+----------------------------------
       Reporter:  jason                  |         Owner:  jason, was           
    
           Type:  enhancement            |        Status:  needs_info           
    
       Priority:  major                  |     Milestone:  sage-5.10            
    
      Component:  graphics               |    Resolution:                       
    
       Keywords:                         |   Work issues:                       
    
Report Upstream:  N/A                    |     Reviewers:  Luis Felipe Tabera 
Alonso
        Authors:  Punarbasu Purkayastha  |     Merged in:                       
    
   Dependencies:                         |      Stopgaps:                       
    
-----------------------------------------+----------------------------------

Comment (by ppurka):

 Replying to [comment:22 kcrisman]:
 > Just FYI, #8082 added correct plotting of complex points.  Perhaps the
 input documentation needs to be updated, but there is an example in the
 documentation of it being used.  Note also #9982 and #4838.
 Unfortunately, neither #8082 nor #4348 adds any documentation about
 plotting complex numbers directly via points. Plotting them via `plot` or
 `list_plot` is of course well documented. Also, it appears #4348 is
 incomplete; it does not work with single complex numbers.
 {{{#!python
 sage: from sage.plot.plot import xydata_from_point_list
 sage: xydata_from_point_list(CC(I))
 ([0.0], [1.0])
 sage: xydata_from_point_list([CC(I), CC(1)])
 ([0.0, 1.0], [1.0, 0.0])
 sage: xydata_from_point_list([CC(I)]
 ([0.0], [1.0])
 }}}
 Since the patch here does not break the code which deals with more than
 one instance of complex numbers, I suggest that we proceed with the
 patches here and deal with complex numbers in `point` or `line` in #9982.
 The following ''undocumented'' behavior is broken with this ticket
 {{{
 plot(CC(I))
 }}}
 but the following works
 {{{
 plot([CC(I)])
 plot([CC(I), CC(1)])
 }}}

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