Data Area Background Image
An image can be used for the background of the data area.
ScottPlot.Plot myPlot = new();
// plot sample data
var sig1 = myPlot.Add.Signal(Generate.Sin());
var sig2 = myPlot.Add.Signal(Generate.Cos());
sig1.LineWidth = 3;
sig2.LineWidth = 3;
// One could load an image from a file...
// Image bgImage = new("background.png");
// But in this example we will use a sample image:
Image bgImage = SampleImages.ScottPlotLogo();
myPlot.DataBackground.Image = bgImage;
myPlot.SavePng("demo.png", 400, 300);
This recipe is one of many in the Miscellaneous category
