ScottPlot.NET
GitHub Repo stars

Legend Orientation

Legend items may be arranged horizontally instead of vertically

This code sample is specific to ScottPlot 5 (details)
ScottPlot.Plot myPlot = new();

var sig1 = myPlot.Add.Signal(Generate.Sin(51, phase: .2));
var sig2 = myPlot.Add.Signal(Generate.Sin(51, phase: .4));
var sig3 = myPlot.Add.Signal(Generate.Sin(51, phase: .6));

sig1.Label = "Signal 1";
sig2.Label = "Signal 2";
sig3.Label = "Signal 3";

myPlot.Legend.IsVisible = true;
myPlot.Legend.Orientation = Orientation.Horizontal;

myPlot.SavePng("demo.png", 400, 300);

Edit on GitHub