Hot answers tagged

8

How can I constrain the locator to stay within the region defined by RegionPlot? You can check if locator's coordinates fulfill the condition defining your region. It can be done with the second argument of Dynamic if you introduce Locator explicitly. Take a look at line with Locator[Dynamic[p, With[{... A strange behavior occurs whenever the left ...


1

You can try with Manipulate Manipulate[Row[{SetterBar[Dynamic[y], Range[x]], Dynamic[y]}], {{x, 1,"Squares"}, InputField[#, Number] &}]



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