#7570: default : list_plot of empty lists
------------------------+---------------------------------------------------
   Reporter:  chapoton  |       Owner:  was      
       Type:  defect    |      Status:  new      
   Priority:  minor     |   Milestone:           
  Component:  graphics  |    Keywords:  list_plot
Work_issues:            |      Author:           
   Upstream:  N/A       |    Reviewer:           
     Merged:            |  
------------------------+---------------------------------------------------
 list_plot does not accept '''empty''' lists:

 {{{
 list_plot([1],rgbcolor=(1,0,0))+list_plot([],rgbcolor=(0,0,1))

 IndexError: list index out of range
 }}}

 does not work, whereas

 {{{
 list_plot([1],rgbcolor=(1,0,0))+list_plot([2],rgbcolor=(0,0,1))
 }}}

 does work. It would be nicer if list_plot of empty lists gives an empty
 graphics object.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7570>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.


Reply via email to