MathGroup Archive 2011

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

Search the Archive

Plotting Locators with Color

  • To: mathgroup at smc.vnet.net
  • Subject: [mg118078] Plotting Locators with Color
  • From: Bill <WDWNORWALK at aol.com>
  • Date: Tue, 12 Apr 2011 05:54:19 -0400 (EDT)

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


  • Prev by Date: Re: How to plot derivative directly?
  • Next by Date: Re: concatenate matrices?
  • Previous by thread: Re: How to plot derivative directly?
  • Next by thread: Re: Plotting Locators with Color