#12212: Colormap for implicit_plot3d and parametric_plot3d
-------------------------------------+-------------------------------------
       Reporter:  niles              |        Owner:  jason, was
           Type:  defect             |       Status:  needs_work
       Priority:  major              |    Milestone:  sage-6.5
      Component:  graphics           |   Resolution:
       Keywords:  colormap, plot     |    Merged in:
        Authors:  Joris              |    Reviewers:  Frédéric Chapoton,
  Vankerschaver, Frédéric Chapoton   |  Niles Johnson, Karl-Dieter Crisman,
Report Upstream:  N/A                |  Jonathan Gutow
         Branch:  u/chapoton/12212   |  Work issues:  update documentation
   Dependencies:                     |  and examples
                                     |       Commit:
                                     |  be9d2a587dc3d7bfcb9c9e19689e8fa2feec104b
                                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by chapoton):

 Thanks for the interactive. Here is a slightly modified version, with
 canvas3D and colormap names
 {{{
 var('x,y,z')
 t = sin(z).function(x,y,z)
 @interact
 def _(cm=[colormaps[c].name for c in colormaps], v=['jmol', 'tachyon',
 'canvas3d']):
 
show(implicit_plot3d(z-x*x-y*y,(x,-2,2),(y,-2,2),(z,-1,4),color=(t,colormaps[cm]),viewer=v))
 }}}
 One can note the canvas3d does not have the same viewpoint. One can also
 not that the colors do not look quite the same between the viewers. Maybe
 a difference in global lighting ?

 Concerning setting the color 0 to 1 : it happens inside a jmol specific
 function, and after the color has been turned into an integer between `0`
 and `2**24`. So changing 0 to 1 here does not affect at all the other
 viewers, and should only change total black into almost total black, so
 should not have any visible effect on jmol output (except making it work
 slightly more often).

 I am also not quite satisfied with this buggy behaviour, but something is
 better than nothing. Nevertheless it could still be that the problem is in
 our dialog with jmol and not in jmol itself : are we coding the colors
 correctly ? I thought so, but maybe this needs to be checked. I have tried
 to navigate the jmol code, but did not manage to find something useful
 about color encoding.

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