How do I obtain only one Legend in the following case? I would like to obtain only one "a" and one "b" legend on the side, with two different colors. This means that I want a colored legend for 10 z^i group and one for 10i*z group.
Show[Flatten[{Table[
Plot[{10 z^i, 10 i*z}, {z, -1, 1}, PlotRange -> All,
PlotLegends -> {"a", "b"}], {i, 0, 5, 1}]}]]
What I would like is:
I have tried the Option:
If[i == 1, PlotLegends -> {"a", "b"}, Unevaluated[Sequence[]]]
but it doesn't work
Legended
but I am not sure if this is what you are looking for; you seem to have six pairs of (parametric) functions you plot over the range{-1,1}
; perhaps you would consider plotting each pair separately with one legend per plot if the labels 'a' and 'b' are not carrying some information or you could eg plot them all together using the specific values ofi
that generate each function in the legend $\endgroup$