Skip to main content

Timeline for PlotStyle based on If condition

Current License: CC BY-SA 3.0

5 events
when toggle format what by license comment
Jan 9, 2018 at 21:17 answer added Jelmes timeline score: 3
Jan 9, 2018 at 21:04 comment added Michael E2 I see. I misunderstood what you were after. Something like Sign[evals] /. {-1 -> Green, 0 -> Orange, 1 -> Red}, maybe?
Jan 9, 2018 at 20:47 comment added Jelmes @MichaelE2 but it will plot 3 different lines. I want the corresponding eigenvalues (so the eigenvalues with the same index) to control the colour of the PlotStyle. I do recognise that what I've done is incorrect. I'm interested in how it should be instead.
Jan 9, 2018 at 20:44 comment added Michael E2 Isn't evals a list of numbers? If so, evals < 0 won't work.
Jan 9, 2018 at 20:30 history asked Jelmes CC BY-SA 3.0