Tag Info

Hot answers tagged

2

You can wrap the part that you want to be updated using Dynamic. Check the difference between these two codes: Manipulate[ Graphics[{{Gray, Line /@ Partition[RandomReal[{-4, 4}, {1000, 2}], 2]}, {Red, Circle[{a, b}, c]}}], {a, 0, 1}, {b, 0, 1}, {c, 1, 4}] Manipulate[ Graphics[{{Gray, Line /@ Partition[RandomReal[{-4, 4}, {1000, 2}], 2]}, ...


2

For the code to work without error messages, signa needs an initial value, for instance: Manipulate[Plot[PDF[NormalDistribution[mu, sigma], x], {x, -4*sigma, 4*sigma}], {mu, -10, 10}, {{sigma, .5}, 0, 10}] Alternatively, just tolerate the initial error messages, and move the sigma slider to obtain the desired results.



Only top voted, non community-wiki answers of a minimum length are eligible