zyc.gnuplot.headless
6.0.5
dotnet add package zyc.gnuplot.headless --version 6.0.5
NuGet\Install-Package zyc.gnuplot.headless -Version 6.0.5
<PackageReference Include="zyc.gnuplot.headless" Version="6.0.5" />
<PackageVersion Include="zyc.gnuplot.headless" Version="6.0.5" />
<PackageReference Include="zyc.gnuplot.headless" />
paket add zyc.gnuplot.headless --version 6.0.5
#r "nuget: zyc.gnuplot.headless, 6.0.5"
#:package zyc.gnuplot.headless@6.0.5
#addin nuget:?package=zyc.gnuplot.headless&version=6.0.5
#tool nuget:?package=zyc.gnuplot.headless&version=6.0.5
zyc.gnuplot.headless
gnuplot 6.0.5 for win-x64, cut down for headless use (about 21 MB).
Contents
gnuplot.exe and the DLLs it loads. Qt, wxWidgets, libheif, libavif and libtiff are replaced by small stub
DLLs, so only the file terminals work: svg, pngcairo, pdfcairo, png and the others that write a file.
The interactive qt and wxt terminals do not.
Setup
Installing the package copies the files to gnuplot\bin\ in the output directory, and to the publish
directory on dotnet publish. This also happens for projects that get the package as a transitive dependency.
| MSBuild property | Default | Meaning |
|---|---|---|
ZycGnuplotHeadlessOutputFolder |
gnuplot\bin\ |
Subfolder of the output directory the files go to. |
ZycGnuplotHeadlessCopyToOutput |
true |
Set to false to skip the copy. |
ZycGnuplotHeadlessExecutable |
Read-only: full path of gnuplot.exe inside the package. |
|
ZycGnuplotHeadlessDirectory |
Read-only: folder of gnuplot.exe inside the package. |
Usage
gnuplot sets up its default terminal (qt) on startup, and the stub Qt makes it crash there. Always start it
with the GNUTERM environment variable set to a file terminal. A script can still pick another file terminal
with set terminal.
var startInfo = new ProcessStartInfo(Path.Combine(AppContext.BaseDirectory, "gnuplot", "bin", "gnuplot.exe"))
{
UseShellExecute = false,
RedirectStandardInput = true,
RedirectStandardError = true
};
startInfo.Environment["GNUTERM"] = "svg";
startInfo.ArgumentList.Add("-e");
startInfo.ArgumentList.Add("set terminal pngcairo size 800,600; set output 'plot.png'; plot sin(x)");
using var process = Process.Start(startInfo)!;
process.StandardInput.Close();
var errors = await process.StandardError.ReadToEndAsync();
await process.WaitForExitAsync();
Closing standard input makes pause and other prompts return instead of waiting.
License
gnuplot is distributed under the gnuplot license. The bundled third-party DLLs (cairo, pango, glib, freetype, libgd and others) keep their own licenses.
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 6.0.5 | 53 | 11/22/2026 |
Initial package of the headless gnuplot 6.0.5 build for win-x64.