Ask Your Question

dividenot's profile - activity

2022-05-16 13:35:58 +0100 received badge  Notable Question (source)
2022-05-16 13:35:58 +0100 received badge  Popular Question (source)
2016-11-16 15:15:35 +0100 received badge  Famous Question (source)
2013-07-10 05:30:06 +0100 received badge  Notable Question (source)
2012-02-08 22:25:51 +0100 received badge  Popular Question (source)
2011-11-03 11:11:43 +0100 received badge  Taxonomist
2010-12-14 15:12:57 +0100 marked best answer box removal

You can add frame=false to show() or save()

var('x,y')
p=plot3d(x^2-y^2, (x,-2,2), (y,-2,2))
p.show(frame=false)
p.save('/tmp/foo.png',frame=false)
2010-12-14 15:12:57 +0100 received badge  Scholar (source)
2010-12-14 15:12:56 +0100 received badge  Supporter (source)
2010-12-14 00:52:05 +0100 asked a question box removal

Is there any way to remove the box surrounding 3d output?

2010-12-04 18:12:37 +0100 answered a question New Project Looking for Help: Plotting great circles
var('phi') 
r = 1
theta = 0

cp = lambda theta: parametric_plot3d((r*cos(theta)*sin(phi), r*sin(theta)*sin(phi),
r*cos(phi)), (phi, 0, pi*2)) + parametric_plot3d((r*sin(theta)*sin(phi), 
r*cos(theta)*sin(phi), r*cos(phi)), (phi, 0, pi*2))

many_circles = cp(0) + sum(cp(pi/(2^n)) for n in range(1,7)) + sum(cp(-pi/(2^n))
for n in range(1,7));
many_circles

I found that I don't have to use .show. This is more like what I've been trying to do:

http://t2nb.math.washington.edu:8000/home/pub/53/

Thanks again for the help

2010-12-03 01:00:58 +0100 answered a question New Project Looking for Help: Plotting great circles
var('phi,theta')
T = Spherical('radius', ['azimuth', 'inclination'])
plot3d(2, (theta, 0, pi/4), (phi, 0, pi), transformation=T, aspect_ratio=(1,1,1))
cp = lambda t: plot3d(2, (theta, t, t+.01), (phi, 0, 3*pi), transformation=T,  
aspect_ratio=(1,1,1)); cp
many_circles = cp(0) + sum(cp(pi/(2^n)) for n in range(1,7)) + sum(cp(-pi/(2^n)) for n in range(1,7))
many_circles.show()

This is what I have so far;

http://t2nb.math.washington.edu:8000/home/pub/53/

Anyone think they could help me put lines instead of the sphere sections?

Ultimately I'd like there to be lines and with them on the x, y and z axis.

2010-12-02 08:47:49 +0100 commented answer New Project Looking for Help: Plotting great circles

Just noticed the post a comment button. *feeling kind of silly now*. Thanks alot for the help. I noticed that before evaluating sage: T = Spherical('radius', ['azimuth', 'inclination']) sage: plot3d(2, (theta, 0, pi/4), (phi, 0, 2*pi), transformation=T, aspect_ratio=(1,1,1)) I had to define theta and phi. After that everything worked smoothly. That helps a lot. Thanks again!

2010-12-01 11:17:24 +0100 asked a question New Project Looking for Help: Plotting great circles

Hi,

I'm working on a project and found that sage may be the best program to help. Information can be found at vividdynamics.com. I'm not a math student but study it as a hobby(mainly geometry) and have some art backround.

I'm looking for a way to generate a sphere with great circles plotted at cumulatively smaller intervals as they get closer to axis, x and y. Like I said, I'm not a math student so, I'm not sure how to define it in mathematical terms. basically it would look like an orange but with smaller and smaller pieces at, 90º, 180º, 270º, and 0º.


EDIT (niles):

Are you looking for formulas to parametrize these various great circles (so that you can plot them with sage)? If so, maybe rotation matrices are one easy way to produce them. You could start with a great circle whose parametrization you know (e.g. the one in the x-z plane) and then get others by rotating about the z-axis, say 45º, 67.5º, 78.75º, etc. Is that something like what you're looking for?

If so, the Wikipedia article for rotation matrices looks useful. I believe you can plot parametric curves with sage, and apply arbitrary transformation matrices to them. For starters, here's a circle:

sage: u = var('u')
sage: parametric_plot3d( (cos(u), 0, sin(u)), (u, 0, 2*pi))

EDIT (dividenot):

Thanks for the reply. That sounds exactly what I'm looking to do. I must say though, I'm somewhat confused about the ask/answer system here. Initially I was looking for some kind of forum where I could have a discussion or look up any needed information but ask.sagemath.org was the closest thing I could find. Is editing the message like this the best way to have a discussion?

I looked at the Wikipedia article on rotation matrices. I suspect that SAGE doesn't have a command for rotation matrices so I would have to make an array defining my own range. And call the values of each circle from the matrix. Does that sound like a good way to go about it?

2010-11-08 15:31:48 +0100 asked a question .pdf text problem

I have found some problems with Sages .pdf files. These issues occur many times within one document. To point one out, line 11, page 4 of reference.pdf, there is a line that goes off the page. That particular problem seems to be consistent throughout the document. Is there any fix for this?

Edit: Here is the offending example:

sage: sage.plot.plot.EMBEDDED_MODE = True 
sage: trace(’print factor(10)’) 
... 
NotImplementedError: the trace command is not implemented in the Sage notebook; you must use the

at which point it goes off the page.