First time here? Check out the FAQ!

Ask Your Question
1

axes_range in 3D plots

asked 12 years ago

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

Preview: (hide)

2 Answers

Sort by » oldest newest most voted
2

answered 12 years ago

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...

Preview: (hide)
link
1

answered 12 years ago

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()
Preview: (hide)
link

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: 12 years ago

Seen: 461 times

Last updated: May 08 '12