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


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

Workaround for Plot[ ] and color via PlotStyle

From "Christopher O. Young" <cy56@comcast.net>
Newsgroups comp.soft-sys.math.mathematica
Subject Workaround for Plot[ ] and color via PlotStyle
Date 2011-04-28 10:34 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <ipbfsi$add$1@smc.vnet.net> (permalink)

Show all headers | View raw


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


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


Thread

Workaround for Plot[ ] and color via PlotStyle "Christopher O. Young" <cy56@comcast.net> - 2011-04-28 10:34 +0000

csiph-web