ScottPlot.NET
GitHub Repo stars

Shared Layout

Plot layouts are dynamically sized to accommodate changing tick label sizes, but this can result in misalignment across plots with different axis limits.

Use the Plot.Layout.Fixed() method to apply a standard layout to multiple controls to achieve alignment.

// use a fixed padding on all edges of the data area
PixelPadding padding = new(100, 50, 100, 50);

// apply the same padding to all plots
myPlot1.Layout.Fixed(padding);
myPlot2.Layout.Fixed(padding);