Ask Your Question
1

difference between x,y,z range

asked 2021-11-16 14:19:28 +0200

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

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2021-11-16 15:54:33 +0200

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.

edit flag offensive delete link more
0

answered 2021-11-16 18:21:36 +0200

ErWinz gravatar image

thanks you it is perfect for me

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

1 follower

Stats

Asked: 2021-11-16 14:19:28 +0200

Seen: 304 times

Last updated: Nov 16 '21