#7872: Adding coordinate transformations to plot3d
--------------------------------------------------------+-------------------
Reporter: olazo | Owner: jason
Type: enhancement | Status:
needs_work
Priority: minor | Milestone:
sage-4.3.4
Component: graphics | Keywords:
Author: Bill Cauchois, Oscar Gerardo Lazo Arjona | Upstream: N/A
Reviewer: Karl-Dieter Crisman | Merged:
Work_issues: |
--------------------------------------------------------+-------------------
Changes (by jason):
* owner: olazo => jason
Comment:
One more point that I thought of when trying to use this feature. Why
should I have to specify the names of variables more than once?
Introspection should be able to get these from my gen_transform function.
It seems like I should be able to do this:
{{{
class Cylindrical(sage.plot.plot3d.plot3d._CoordTrans):
"""
Some docs for the mathematical definitions of the variables
"""
def gen_transform(self, radius=None, azimuth=None, height=None):
return (radius * cos(azimuth),
radius * sin(azimuth),
height)
}}}
and things should just work. all_vars can be inferred from the keyword
arguments to gen_transform. It's pretty easy to come up with a good
default _name (i.e., 'name of class (variables) coordinate system').
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7872#comment:25>
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.