#12798: list_plot3d plots extraneous points at z=0 and doesn't take color or
rgbcolor as keywords
-----------------------------------------+----------------------------------
       Reporter:  ppurka                 |         Owner:  jason, was         
           Type:  defect                 |        Status:  needs_review       
       Priority:  major                  |     Milestone:  sage-5.1           
      Component:  graphics               |    Resolution:                     
       Keywords:  list_plot3d, sd40.5    |   Work issues:                     
Report Upstream:  N/A                    |     Reviewers:  Karl-Dieter Crisman
        Authors:  Punarbasu Purkayastha  |     Merged in:                     
   Dependencies:                         |      Stopgaps:                     
-----------------------------------------+----------------------------------

Comment (by kcrisman):

 Great, color works now - nice catch.

 It turns out that the documentation for what this function actually does
 is ''insanely'' bad.  I'm going to upload a patch clarifying what it
 actually does, which is not intuitive at all.

 As for the issue you are seeing, I think it's very interesting.  Notice
 that the box that comes up ''does'' have the right dimensions to
 incorporate all three points, even when you don't specify `num_points`!

 Here is what is going on - I've printed out the `vals`.  All those `nan`
 guys will lead to not much of a plot.
 {{{
 sage: sage: list_plot3d([(0,0,1), (2,3,4),
 (-1,-1,-1)],interpolation_type='linear')
 [[ -1.00000000e+00              nan              nan              nan
 nan              nan]
  [             nan   6.66133815e-16              nan              nan
 nan              nan]
  [             nan              nan              nan              nan
 nan              nan]
  [             nan              nan              nan   2.00000000e+00
 nan              nan]
  [             nan              nan              nan              nan
 nan              nan]
  [             nan              nan              nan              nan
 nan              nan]]
 }}}
 So you pick your poison here.  Either you get something that does have the
 right points, but then also has everything else be extended by zero, or
 you don't do that, but the algorithm fails in certain cases.  This will
 happen whenever the "box" in question is a lot bigger than the projection
 of the actual points to the xy-plane.
 {{{
 sage: sage: list_plot3d([(0,0,1), (2,3,4), (-1,-1,-1)]) # bad
 sage: sage: list_plot3d([(0,5,1), (5,5,4), (-1,-5,-1)]) # good
 }}}

 I'm good with your work.  If you like my changes, sign off as a reviewer
 and we'll get this in.

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