MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: locator snap


On Apr 29, 2008, at 6:49 AM, Maarten van der Burgt wrote:

> Dear all,
>
> In the example below the locator can be moved to any position in the  
> graphic.
> Can the locator be made to snap to multiples of say 0.1?
>
> Manipulate[Column@{Graphics[{}, Axes -> True], p}, {{p, {0, 0}},  
> Locator}]
>
> Thanks for your help.
>
> Maarten



Manipulate[
  p = Round[p, .1];
  Column@{Graphics[{}, Axes -> True], p},
  {{p, {0, 0}}, Locator}]

Cheers,
Joe


  • Prev by Date: Re: Getting the size of the bounding box of a Graphics3D[]
  • Next by Date: Re: Fit data with range
  • Previous by thread: Re: root of complex function
  • Next by thread: Re: locator snap