Re: Plotting Locators with Color
- To: mathgroup at smc.vnet.net
- Subject: [mg118128] Re: Plotting Locators with Color
- From: Peter Pein <petsie at dordos.net>
- Date: Wed, 13 Apr 2011 05:54:34 -0400 (EDT)
- References: <io17da$i4a$1@smc.vnet.net>
Am 12.04.2011 11:52, schrieb Bill:
> Hi:
>
> I'm using Mathematica 8.0.1. on a PC with the following code:
>
> Manipulate[
> LocatorPane[pts; Dynamic@pts,
> Dynamic@Graphics[{Spline[pts, Bezier]}, Axes -> True,
> AxesLabel -> {x, y}, PlotRange -> {{-3, 3}, {-3, 3}},
> Background -> LightOrange]], {{pts, {{0, 0}, {0, 2}, {2, 0}, {2,
> 2}}}, {-3, -3}, {3, 3}, ControlType -> None},
> SaveDefinitions -> True, Initialization :> {Needs["Splines`"]},
> AutorunSequencing -> {2}]
>
> How can I plot this with each locator plotted in a different color?
>
>
> Thanks,
>
> Bill
>
Hi,
the first of the "Neat Examples" for LocatorPane shows a possible way:
add the Option Appearance -> Table[Style["\[FilledCircle]", Hue[i/5]],
{i, 4}]. This gives dots in place of the standard locator.
hth,
Peter