| New Reply |
Mathematica PlotStyle->{color,color,color} not working |
Share Thread |
| May10-11, 11:54 AM | #1 |
|
|
Mathematica PlotStyle->{color,color,color} not working
Hi All, running into a bit of a mathematica issue. I put the following code in to plot:
Code:
Plot[Im[correlationList], {t, 0, timeEnd},
PlotStyle -> ColorList]
(I've omitted PlotRange -> {Full, {-1, 1}}, ImageSize -> Large, from the above command, but that's in there too) ColorList is a list of Hue[] evaluations, i.e. Code:
In:ColorList
Out: {Hue[1/10],Hue[1/5],Hue[3/10],Hue[2/5],Hue[1/2],Hue[3/5],Hue[7/10],Hue[4/5],Hue[9/10],Hue[1]}
This behavior holds even when I change the PlotStyle term, for example if I use {Orange,Blue,Green} instead of ColorList, it plots *all* of the functions green, none orange or blue. So it always takes the last member of the list. I'm not sure why it's doing this. I tried transposing ColorList (which I generate from an Array[0&,10] command, then filled in with a Do[] loop), but that just gave error messages. Thanks for any help, rynlee |
| May10-11, 01:07 PM | #2 |
|
|
I'm thinking that you might need to Plot[{Im[correlationList[[1]]], ..., Im[correlationList[[n]]]}] rather than
Plot[Im[{correlationList[[1]], ..., correlationList[[n]]} ], if you get what I mean. So what happens if you plot Evaluate[Im[correlationList]] instead? Or first convert it to a list, e.g. plotting Im /@ correlationList? |
| May10-11, 03:36 PM | #3 |
|
|
yep the evaluate[] did it! Thanks!
|
| May10-11, 05:27 PM | #4 |
|
|
Mathematica PlotStyle->{color,color,color} not working
The final function (just to show what it should look like if anyone else has the same problem):
|
| New Reply |
Similar discussions for: Mathematica PlotStyle->{color,color,color} not working
|
||||
| Thread | Forum | Replies | ||
| Calculating Color temperature and Color Rendering Index.. | General Physics | 9 | ||
| color physics and color perception | Biology | 4 | ||
| Extraterrestrial sky color based on atmospheric composition and sun color | General Astronomy | 4 | ||
| Changing Plot Color in Mathematica | Math & Science Software | 1 | ||
| [COLOR=Navy]Thermal Energy Look Over![/COLOR]: | Introductory Physics Homework | 6 | ||