#12904: colors from rainbow don't work in 3d plots
----------------------------------+-----------------------------------------
Reporter: kcrisman | Owner: jason, was
Type: defect | Status: needs_review
Priority: major | Milestone: sage-5.1
Component: graphics | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers:
Authors: André Apitzsch | Merged in:
Dependencies: #11383 | Stopgaps:
----------------------------------+-----------------------------------------
Changes (by {'newvalue': u'Andr\xe9 Apitzsch', 'oldvalue': ''}):
* status: new => needs_review
* dependencies: => #11383
* author: => André Apitzsch
Comment:
The necessary change to solve the problem is
{{{
#!diff
--- a/sage/plot/plot3d/texture.py
+++ b/sage/plot/plot3d/texture.py
@@ -211,9 +212,9 @@
return info.rgb()
elif isinstance(info, str):
try:
- return colors[info]
+ return Color(info)
except KeyError:
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12904#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.