1
$\begingroup$

When I run this command I don't see anything until the value of a is nearly 0.5

 Animate[ RegionPlot[  y^2 < a , {x, -5, 5}, {y, -5, 5}] , {a, 0.1, 0.5}]

Same situation with Manipulate.

$\endgroup$
1
  • $\begingroup$ What happens when you give a step size? $\endgroup$ Jun 9, 2020 at 3:03

1 Answer 1

2
$\begingroup$

Building the RegionPlot is too slow. Use Region along with ImplicitRegion

Clear["Global`*"]

reg[a_] = ImplicitRegion[y^2 < a, {{x, -5, 5}, {y, -5, 5}}];

Animate[
 Region[reg[a], Frame -> True, PlotRange -> {-5, 5}],
 {a, 0.1, 0.5}]

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.