I am about to plot eigenvalues of a matrix versus varyingj
's.
Hma[j_Integer] = {{0.1*j^2, 0, 0, 0.2*j, 0}, {0, 0.1*j, 0, 0.2*j^3,
0}, {0, 0.1*j, 0, 0, 0.2*j}, {0.1*j^2, 0, 0, 0, 0.2*j}, {0, 0,
0.1*j, 0.2*j, 0}};
data=Flatten[Table[Thread[{j, Re@Eigenvalues[Hma[j]]}], {j, n}], 1];
ListPlot[data]
I am trying to have a plot with specified color as I manually showed above. (higher eigenvalues (first ones) with a same color (for example Red above), seconds with same color (and different from the first ones for example Yellow))