Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2013

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

Search the Archive

ListLinePlot Color each line differently

  • To: mathgroup at smc.vnet.net
  • Subject: [mg131451] ListLinePlot Color each line differently
  • From: kuzumadam at gmail.com
  • Date: Wed, 24 Jul 2013 22:05:07 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-outx@smc.vnet.net
  • Delivered-to: mathgroup-newsendx@smc.vnet.net

Hi, I have a line plot made from an imported .xlsx file. I have made my own color blend and want to color each line differently according to this blend - how do I do this? Currently my blend will only work across the x or z axis.

data2 = Import["SAXS_SIM_EDR10_23JUL.xlsx"]

blend1 = (Blend[{{0, Green}, {1, Red}}, #] &);
Graphics[Table[{blend1[x], Disk[{8 (x + 1), 0}]}, {x, 0, 1, 1/8}]]

p2 = ListLinePlot[data2, PlotRange -> {{0, 0.7}, {-1, -5}}, 
  ColorFunction -> (blend1[#1] &), ImageSize -> 500, 
  Background -> None, PlotStyle -> Thickness[0.0025]]

Thanks in advance,
Toni



  • Prev by Date: Re: Mathematica Kernel Stops Functioning
  • Next by Date: Re: Mathematica v9.0 on linux -- Plot3D
  • Previous by thread: Re: "Complement" to the Risch Algorithm
  • Next by thread: Re: ListLinePlot Color each line differently