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

**URL:** <https://community.wolfram.com/t/avoid-a-3d-plot-to-look-different-in-and-out-of-manipulate/9827>\
**Category:** Questions\
**Tags:** graphics-and-visualization, interface-construction\
**Created:** [January 3, 2017, 2:03pm UTC](https://community.wolfram.com/t/avoid-a-3d-plot-to-look-different-in-and-out-of-manipulate/9827 "2017-01-03T14:03:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fbeleznay](https://avatars.discourse-cdn.com/v4/letter/f/b9e5f3/32.png) [@fbeleznay](https://community.wolfram.com/u/fbeleznay)\
**Post date:** [January 3, 2017, 2:03pm UTC](https://community.wolfram.com/t/avoid-a-3d-plot-to-look-different-in-and-out-of-manipulate/9827/1 "2017-01-03T14:03:12Z")

</div>

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:

 ![Untitled-1.jpeg](https://global.discourse-cdn.com/wolfram/original/3X/7/0/70b0d3d0be24900f5dc5ad48736ae2f15106c844.jpeg)

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:

 ![Untitled-2.jpeg](https://global.discourse-cdn.com/wolfram/original/3X/e/5/e5503cd73278b5f5ee430e823232d88d2237dcfc.jpeg)

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

---

<div class="post-metadata">

**Author:** ![wkan](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/wkan/32/15980_2.png) [@wkan](https://community.wolfram.com/u/wkan)\
**Post date:** [January 3, 2017, 2:25pm UTC](https://community.wolfram.com/t/avoid-a-3d-plot-to-look-different-in-and-out-of-manipulate/9827/2 "2017-01-03T14:25:39Z")

</div>

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}]

```

---

<div class="post-metadata">

**Author:** ![fbeleznay](https://avatars.discourse-cdn.com/v4/letter/f/b9e5f3/32.png) [@fbeleznay](https://community.wolfram.com/u/fbeleznay)\
**Post date:** [January 3, 2017, 4:20pm UTC](https://community.wolfram.com/t/avoid-a-3d-plot-to-look-different-in-and-out-of-manipulate/9827/3 "2017-01-03T16:20:16Z")

</div>

Yes, this indeed works for me, thank you.
