#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):
From `sage.plot.colors.float_to_html`'s docstring:
{{{
This may not seem necessary, but there are some odd cases where matplotlib
is just plain schizophrenic – for an example, do
sage: vertex_colors = {(1.0, 0.8571428571428571, 0.0): [4, 5, 6],
(0.28571428571428559, 0.0, 1.0): [14, 15, 16], (1.0, 0.0, 0.0): [0, 1, 2,
3], (0.0, 0.57142857142857162, 1.0): [12, 13], (1.0, 0.0,
0.85714285714285676): [17, 18, 19], (0.0, 1.0, 0.57142857142857162): [10,
11], (0.28571428571428581, 1.0, 0.0): [7, 8, 9]}
sage: graphs.DodecahedralGraph().show(vertex_colors=vertex_colors)
Notice how the colors don’t respect the partition at all.....
}}}
Is this still true? The example appears to work for me, but I could be
misinterpreting it.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5601#comment:20>
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=.