Change legend entries order in Plots.jl

Imagine having 6 series of data, labeled using the cardinal numbers. When I split the legend into two columns using legendcolumns = 2 I get the following order:

1 2
3 4
5 6

Is there any way to get the following order?

1 4
2 5
3 6

Try something like:

using Plots
n = 7
m = (n+1)÷2
D = rand(10, n)
ix = [1:m (m+1):2*m]'[1:n]
plot(D[:,ix], label=string.((ix)'), legendcolumns=2)
1 Like