#5601: predefine colors in Sage
---------------------------+------------------------------------------------
   Reporter:  jason        |       Owner:  was         
       Type:  enhancement  |      Status:  needs_review
   Priority:  minor        |   Milestone:  sage-4.3    
  Component:  graphics     |    Keywords:              
Work_issues:               |      Author:  Mitesh Patel
   Reviewer:               |      Merged:              
---------------------------+------------------------------------------------

Comment(by mpatel):

 Replying to [comment:3 jason]:
 > I think just the CSS3 official colors should be sufficient.  Are the
 names the same for the intersection between CSS3 and X11 colors?

 Almost.  See
 
[http://en.wikipedia.org/wiki/X11_color_names#Color_names_that_clash_between_X11_and_HTML.2FCSS
 this].

 > We should also have several lists of colors (like the predefined cmaps
 in matplotlib) that go well together, so you can do
 >
 > colors.winter[0]
 >
 > colors.winter[1]
 >
 > etc. for a nice set of colors that go well together.

 Oops!  I haven't done this.  Which of matplotlib's
 [http://www.scipy.org/Cookbook/Matplotlib/Show_colormaps color maps]
 should we use?

 {{{
 #!python
 from matplotlib import cm
 summer = []
 for i in xrange(cm.summer.N):
     summer.append(tuple(cm.summer(i)[0:3]))
 }}}

 `N = 256` for all of them.  Should we make our lists the same length?

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5601#comment:8>
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].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=.


Reply via email to