Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I'm using ListLinePlot to plot a list containing 10 lists, using the default colors:

ListLinePlot[myList]

I would like to be able to keep the default PlotStyle options for the 9 first lists, but not for the last one. I tried to do:

myStyle = Append[Table[{Automatic}, {9}], {Green,Thickness[0.01]}];
ListLinePlot[myList, PlotStyle -> {myStyle}]

but all the lists are plotted in {Green,Thickness[0.01]}

What's the best way to do that?

share|improve this question
    
The problem is just a syntax error. Maybe the question is still useful, to demonstrate how the fonctionality can be achieved ? –  andre Feb 25 '13 at 14:43
    
Why don't you use Show? That's what it is for. –  rcollyer Feb 25 '13 at 15:05

2 Answers 2

up vote 4 down vote accepted
  myList = Sort /@ RandomReal[1, {10, 100}];
  myStyle = Append[Table[Automatic, {9}], 
  Directive[{Green, Thickness[0.01]}]]; 
  ListLinePlot[myList,  PlotStyle -> myStyle]

enter image description here

share|improve this answer

replace {myStyle} by myStyle

 myStyle = Append[Table[{Automatic}, {9}], {Green, Thickness[0.01]}];
 ListLinePlot[myList, PlotStyle -> myStyle]
share|improve this answer
    
erf so stupid... thanks! –  su1 Feb 25 '13 at 14:37
    
I would be good if the question was corrected from this problem. Then I delete my answer (don't care the +20 of rep). –  andre Feb 26 '13 at 14:03

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.