Hello community,
I am experiencing a strange behavior with the PlotLayout
option. I have the following example code:
data = Table[
Table[{x, f}, {x, 0, 2 Pi, 0.1}], {f, {Sin[x], Sin[2 x]}}];
ListPlot[data, PlotStyle -> {Blue, Red}, PlotLayout -> "Row"]
Without using the PlotLayout
option, the plots are displayed correctly with one in blue and the other in red. However, when I use the PlotLayout -> "Row"
option, both plots are printed in red. This behavior seems unexpected, and I'm having trouble understanding why this is happening.
I would appreciate it if someone could explain why the PlotStyle
specification is not working as expected when the PlotLayout
option is used. Am I missing something obvious here? Any insights or suggestions to resolve this issue would be greatly appreciated.
Thanks in advance for any help!