First time here? Check out the FAQ!

Ask Your Question
1

difference between x,y,z range

asked 3 years ago

ErWinz gravatar image

hi in this code :

f(x,y)=x^2-3*x^4-x^2*y^2+2*x*y    
h(x,y,z)=f(x,y)-z
implicit_plot3d(h, (x, -1,1), (y, -4, 4), (z, -1, 1.5),color="green",adaptive=True,mesh=True)

the result is very large in y because y-range are wider thant x and z-range in my example how can i tell implicitplot3d to take a different scalar in y-range ? i have tried to add plot_points=(1,4,1) because i have understood this in the help but it is not accepted thanks

Preview: (hide)

2 Answers

Sort by » oldest newest most voted
1

answered 3 years ago

rburing gravatar image

I guess what you want is the aspect_ratio keyword argument, e.g. aspect_ratio=(1/2,1/8,1/2.5) will make the bounding box into a unit cube while keeping the ranges as you specified them.

Preview: (hide)
link
0

answered 3 years ago

ErWinz gravatar image

thanks you it is perfect for me

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

1 follower

Stats

Asked: 3 years ago

Seen: 649 times

Last updated: Nov 16 '21