MathGroup Archive 2005

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

Search the Archive

Re: plot on condition

  • To: mathgroup at smc.vnet.net
  • Subject: [mg56249] Re: plot on condition
  • From: bghiggins at ucdavis.edu
  • Date: Wed, 20 Apr 2005 05:30:52 -0400 (EDT)
  • References: <d42lcj$3lb$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Steven, Try this

pnts={{1,2},{5,4},{3,2},{2,6}, {5,3}};
cnd={7,3,5,8,3};


Show[Graphics[MapIndexed[If[
    cnd[[First[#2]]] == 3, {Blue, AbsolutePointSize[6], Point[#1]},
{Green,
          AbsolutePointSize[6], Point[#1]}] &, pnts], {PlotRange ->
            Automatic, AspectRatio ->
          GoldenRatio^(-1), DisplayFunction :> $DisplayFunction,
ColorOutput ->Automatic, Axes ->
      Automatic, AxesOrigin -> Automatic,
        PlotLabel -> None, AxesLabel -> None, Ticks -> Automatic}]]

Cheers,

Brian


  • Prev by Date: Re: Bug in JavaBlock (or in JavaBlock documentation)
  • Next by Date: Re: plot on condition
  • Previous by thread: Re: How to run multiple sessions on Mac OS X?
  • Next by thread: Re: plot on condition