#7850: spherical plot
---------------------------+------------------------------------------------
Reporter: olazo | Owner: was
Type: enhancement | Status: new
Priority: minor | Milestone:
Component: graphics | Keywords: spherical,plot
Work_issues: | Author: olazo
Upstream: N/A | Reviewer:
Merged: |
---------------------------+------------------------------------------------
I've made a clone of Mathematicas SphericalPlot3d . Only that the 3d
seemed redundant to me.
The code is
{{{
var('phi,theta')
def spherical_plot(f,phiran=(phi,0,2*pi),thetaran=(theta,0,pi),**kwds):
phi=phiran[0]
phi0=phiran[1]
phif=phiran[2]
theta=thetaran[0]
theta0=thetaran[1]
thetaf=thetaran[2]
Rho=(f*cos(phi)*sin(theta),f*sin(phi)*sin(theta),f*cos(theta))
return
parametric_plot3d(Rho,(phi,phi0,phif),(theta,theta0,thetaf),**kwds)
}}}
Several examples can be found in [http://www.sagenb.org/pub/1319/]
I've been suggested to eliminate the dependence on the 'phi' and 'theta'
variables. I quite agree that that would be good, but I can't figure how
to do it.
Also, I think I might generalize this into any sort of transform plot. But
let's first see how this works out. Especially the variable dependency
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7850>
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.