#12212: Colormap for implicit_plot3d and parametric_plot3d
-------------------------------------+-------------------------------------
Reporter: niles | Owner: jason, was
Type: defect | Status: needs_work
Priority: major | Milestone: sage-6.4
Component: graphics | Resolution:
Keywords: colormap, plot | Merged in:
Authors: Joris | Reviewers: Frédéric Chapoton,
Vankerschaver, Frédéric Chapoton | Niles Johnson
Report Upstream: N/A | Work issues:
Branch: u/chapoton/12212 | Commit:
Dependencies: | d6d60edfcd4524d882e14b5cd4f97b26a79e28d6
| Stopgaps:
-------------------------------------+-------------------------------------
Comment (by kcrisman):
Okay, jmol does indeed 'work' (though without the colormap) in command
line and notebook, though the Tachyon pic is the static piece in the
notebook, I think.
{{{
sage: from sage.plot.plot3d.parametric_surface import ParametricSurface
sage: cm = colormaps.autumn
sage: def c(x,y): return sin(x*y)**2
sage: def g(x,y): return x, y, x**2 + y**2
sage: P1 = ParametricSurface(g, (srange(-10,10,0.1),
srange(-5,5.0,0.1)),color=(c,cm))
sage: P1.show()
}}}
However,
{{{
sage: sage: var('x,y,z')
(x, y, z)
sage: t = (sin(2*y+3*z)**2).function(x,y,z)
sage: cm = colormaps.gist_rainbow
sage: sage: implicit_plot3d(x^2+y^2+z^2==4, (x, -3, 3), (y, -3,3), (z,
-3,3), color=(t,cm))
}}}
doesn't. Given that this is supposed to work with Tachyon, it should
presumably at least fail gracefully for Jmol. Is this maybe a difference
between parametric and implicit plotting?
--
Ticket URL: <http://trac.sagemath.org/ticket/12212#comment:115>
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.