Ask Your Question
1

axes_range in 3D plots

asked 2012-05-07 11:58:31 +0200

Farhad gravatar image

Hello guys,

I'm new to Sage and have a simple question.

How can I set range of axes in 3D plots? I am using implicit_plot3d and couldn't find anything like set_axes_range (as is in 2D plots)

Thanks

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2012-05-07 14:03:30 +0200

calc314 gravatar image

The ranges are set as in the following example:

var('x,y,z')
implicit_plot3d(x^3+y^2-3*z==0,(x,-2,2),(y,-2,2),(z,-3,3))

You can find more details at: http://www.sagemath.org/doc/reference...

edit flag offensive delete link more
1

answered 2012-05-08 05:06:16 +0200

ndomes gravatar image

I am afraid you explicitly have to draw the axes.

var('x,y,z')
d = 4
P = implicit_plot3d(x^3+y^2-3*z==0,(x,-2,2),(y,-2,2),(z,-3,3))
P += arrow((-d,0,0),(d,0,0))
P += arrow((0,-d,0),(0,d,0))
P += arrow((0,0,-d),(0,0,d))
P.show()
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-05-07 11:58:31 +0200

Seen: 351 times

Last updated: May 08 '12