1

I am trying to plot multiple curves with ListPlot. Since I have 12 curves to plot, the legend appears in two columns. I looked into this solution but it does not work with Listplot. Can anyone help?

Thanks, Saeid

saeid
  • 37
  • 4

1 Answers1

2
SeedRandom[1234];

data = Reverse@Transpose[
    Sort /@ RandomReal[1, {10, 12}]];

If the ListPlot is Joined

ListPlot[data, Joined -> True,
 PlotLegends -> LineLegend[Automatic,
   LegendLayout -> {"Column", 1}]]

enter image description here

If not Joined

ListPlot[data,
 PlotLegends -> PointLegend[Automatic,
   LegendLayout -> {"Column", 1}]]

enter image description here

Bob Hanlon
  • 157,611
  • 7
  • 77
  • 198