16
$\begingroup$

Bug introduced in 11.1 and fixed in 11.2

[CASE:3892079] was created

[...] I have reproduced this problem with PerformanceGoal in version 11.1 and reported the issue to our developers [...]


Take this code:

Animate[
    Plot3D[
        Sin[t x y], {x, -3, 3}, {y, -3, 3}
      , PlotRange -> {0, 1.2}, PerformanceGoal -> "Quality"
    ]
  , {t, 0, 2}
  , AnimationRunning -> False
  , DisplayAllSteps -> True
]

V10.4 correct behavior

enter image description here

11+ regression

enter image description here

So it behaves like for the default PerformanceGoal :> $PerformanceGoal.

Can't find other explanation except . Win10 here, is this the case everywhere?

Win10 V11.1.1

$\endgroup$
  • 2
    $\begingroup$ Same on the MacOS operating system. $\endgroup$ – C. E. May 17 '17 at 8:06
  • 1
    $\begingroup$ Same on Windows 7 x64. $\endgroup$ – Alexey Popkov May 17 '17 at 8:38
  • 2
    $\begingroup$ With versions 11.0.1 and 10.4.1 there is no problem on Windows 7 x64, so the regression is introduced in 11.1. $\endgroup$ – Alexey Popkov May 17 '17 at 9:49
17
$\begingroup$

The quick fix

is to use Block:

Animate[
   Block[{$PerformanceGoal = "Quality"}
     , Plot3D[Sin[t x y], {x, -3, 3}, {y, -3, 3}
         , PlotRange -> {0, 1.2}
       ]
   ]
 , {t, 0, 2}
 , AnimationRunning -> False
 , DisplayAllSteps -> True
]
$\endgroup$
  • $\begingroup$ Wow, localizing the value of a variable can do the job in such a way. $\endgroup$ – Αλέξανδρος Ζεγγ May 19 '17 at 2:45
3
$\begingroup$

fyi, This has been fixed in 11.2. Tested it on the cloud under Linux

enter image description here

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.