ScottPlot.NET
ScottPlot’s Dependencies and their Implications

ScottPlot 4 depends on the System.Drawing.Common package to render plots. This has special considerations for modern .NET projects depending on which operating system is being targeted.

Windows

Applications targeting .NET 6 and newer may produce the following message:

Warning	CA1416	This call site is reachable on all platforms. 
'FormsPlot.Plot' is only supported on: 'Windows' 7.0 and later.	

To fix this warning: edit your .csproj file to target .net6.0-windows

Linux & MacOS

Non-Windows users must take the following steps to enable System.Drawing.Common rendering support:

Step 1: Install libgdiplus

  • Linux: apt-get install -y libgdiplus

  • MacOS: brew install mono-libgdiplus

Step 2: Manually add the System.Drawing.Common package to your project:

  • dotnet add package System.Drawing.Common

Step 3: Follow Microsoft’s recommended action and edit runtimeconfig.json to EnableUnixSupport.

ScottPlot 5

  • ScottPlot 5 is not yet released, but it is expected to release before .NET 7 in November, 2022.

  • ScottPlot 5 does not depend on System.Drawing.Common, so the concerns above concerns do not apply.

  • The rendering technology underlying ScottPlot 5 is still not fully decided. See the ScottPlot Roadmap for details.