#12929: Changing default color option for posets
-----------------------------------------------+----------------------------
       Reporter:  aschilling                   |         Owner:  sage-combinat 
           Type:  enhancement                  |        Status:  needs_review  
       Priority:  minor                        |     Milestone:  sage-5.1      
      Component:  combinatorics                |    Resolution:                
       Keywords:  poset, days38, plot, graphs  |   Work issues:                
Report Upstream:  N/A                          |     Reviewers:  Franco Saliola
        Authors:  Viviane Pons                 |     Merged in:                
   Dependencies:                               |      Stopgaps:                
-----------------------------------------------+----------------------------
Changes (by VivianePons):

 * cc: saliola, VivianePons (added)
  * keywords:  poset, days38 => poset, days38, plot, graphs
  * status:  new => needs_review


Old description:



New description:

 The problem was that the posets appeared by default with a dark blue color
 on vertices which was not very pretty and made it difficult to read
 because the text was still in black.

 Actually, the problem was coming from a little bug on Graph plot :

 {{{
 sage: G = Graph()
 sage: G.add_vertex(1)
 sage: G.plot()
 sage: G.plot(vertex_colors=None)

 }}}
 Giving "vertex_colors=None" didn't give the same result as not sending any
 vertex_colors. In the first case, the default behaviour of the graph plot
 (which gives some king of pale beige to the vertices) was not followed and
 for some reason the ugly blue appeared.

 To fix it, I had to make a small change to the graph_plot.py in the way
 arguments were tested. It seems that all argument are tested the same way
 but I don't know if it is causing any trouble for other arguments so I
 only changed the "vertex_colors" test.

 I didn't add any tests because I don't know how to test that the plot of a
 graph is done with blue or with some other color...

--

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