#17660: Document (and/or implement better) colormaps with 3d plots
------------------------+----------------------------
Reporter: kcrisman | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.5
Component: graphics | Keywords:
Merged in: | Authors:
Reviewers: | Report Upstream: N/A
Work issues: | Branch:
Commit: | Dependencies:
Stopgaps: |
------------------------+----------------------------
Perhaps ironically, in #12212 we now have a pretty nice syntax for using
colormaps with an arbitrary function (scaled to 1) with parametric and
implicit plots, but not "regular" 3d plots! We just have Harald's (edited
by Jason) example
{{{
sage: var('r v')
sage: cmsel = [colormaps['autumn'](i) for i in sxrange(0,1,0.05)]
sage: p = plot3d(0.2*(r**2 + v**2) + cos(2*r)*sin(2*v),(r,-2,2), (v,-2,2),
adaptive=True, color=cmsel, plot_points=10, opacity=0.9)
sage: p2 = sphere((0,0,0),1,color='black',opacity=0.5)
sage: (p+p2).show(aspect_ratio=(1,1,1), figsize=[7,3])
}}}
which isn't ideal.
We need to document this, or (much better) use the same syntax, and maybe
even enable it even when `adaptive=False`.
See also [http://ask.sagemath.org/question/7581/use-a-colormap-for-
implicit_plot3d/ this ask.sagemath question] and
[http://ask.sagemath.org/question/8964/how-to-color-a-3d-plot-by-z-level/
this one] and [http://ask.sagemath.org/question/11354/controling-the-
color-of-a-parametric-surface/ this one].
--
Ticket URL: <http://trac.sagemath.org/ticket/17660>
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.