Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #1650

Re: Plotting Locators with Color

From Peter Pein <petsie@dordos.net>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Plotting Locators with Color
Date 2011-04-13 09:54 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <io3rsk$1q3$1@smc.vnet.net> (permalink)
References <io17da$i4a$1@smc.vnet.net>

Show all headers | View raw


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

Back to comp.soft-sys.math.mathematica | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Plotting Locators with Color Bill <WDWNORWALK@aol.com> - 2011-04-12 09:52 +0000
  Re: Plotting Locators with Color Peter Pein <petsie@dordos.net> - 2011-04-13 09:54 +0000
  Re: Plotting Locators with Color "Alexander Elkins" <alexander_elkins@hotmail.com> - 2011-04-14 09:00 +0000

csiph-web