MathGroup Archive 2005

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

Search the Archive

Re: plot on condition


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