Message Boards Message Boards

0
|
6841 Views
|
2 Replies
|
3 Total Likes
View groups...
Share
Share this post:

Avoid a 3D plot to look different in and out of "manipulate"?

Posted 7 years ago

I am trying to work with manipulate to show 3D plots, but for some reason the graphs are not what I expect them to be. I am using Mathematica 10.1. Using the code (from the "RegionFunction" help page)

Plot3D[x^2 - y^2, {x, -3, 3}, {y, -3, 3}, RegionFunction -> Function[{x, y, z}, 2 < x^2 + y^2 < 9]]

I get the expected output:

enter image description here

However, when I insert the same code to manipulate,

Manipulate[Plot3D[x^2 - y^2, {x, -3, 3}, {y, -3, 3}, RegionFunction -> Function[{x, y, z}, 2 < x^2 + y^2 < 9]], {t, 0, 1}]

I get a different graph:

enter image description here

Can someone please tell me what am I doing wrong? Thanks.

POSTED BY: Ferenc Beleznay
2 Replies
Posted 7 years ago

Try to add the PerformanceGoal option in your Plot3D

Manipulate[
 Plot3D[x^2 - y^2, {x, -3, 3}, {y, -3, 3}, 
  RegionFunction -> Function[{x, y, z}, 2 < x^2 + y^2 < 9], 
  PerformanceGoal -> "Quality"], {t, 0, 1}]
POSTED BY: Wilson Kan

Yes, this indeed works for me, thank you.

POSTED BY: Ferenc Beleznay
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract