MathGroup Archive 2011

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

Search the Archive

Workaround for Plot[ ] and color via PlotStyle

  • To: mathgroup at smc.vnet.net
  • Subject: [mg118439] Workaround for Plot[ ] and color via PlotStyle
  • From: "Christopher O. Young" <cy56 at comcast.net>
  • Date: Thu, 28 Apr 2011 06:35:06 -0400 (EDT)

I figured out how to add a coordinated list of colors. Just use
part-specification on a color list. Of course, this could be a list of RGB
specifications, etc.

(y = x^k //
      Plot[
        #, {x, -5, 5},
        PlotStyle -> {Thick, {Red, Yellow, Blue}[[k]]}
        ] &)\
   ~Table~{k, 1, 3}\
    // Show




  • Prev by Date: Re: Learning Mathematica with neat projects
  • Next by Date: Re: Extraneous @ in TeXForm
  • Previous by thread: Re: Learning Mathematica with neat projects
  • Next by thread: Workaround for Plot[ ] and color via PlotStyle