ScottPlot.NET
GitHub Repo stars

Right To Left (RTL) text support

Enabling Right To Left (RTL) support correctly renders text in RTL languages.

ScottPlot.Plot myPlot = new();

LabelStyle.RTLSupport = true; // enable right-to-left text support

var sig1 = myPlot.Add.Signal(Generate.Sin(51));
sig1.LegendText = "אמת"; // example right-to-left text

var sig2 = myPlot.Add.Signal(Generate.Cos(51));
sig2.LegendText = "English"; // example left-to-right text

myPlot.ShowLegend();

myPlot.SavePng("demo.png", 400, 300);
This recipe is one of many in the Legends category