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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="zyc.gnuplot.headless" Version="6.0.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="zyc.gnuplot.headless" Version="6.0.5" />
                    
Directory.Packages.props
<PackageReference Include="zyc.gnuplot.headless" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add zyc.gnuplot.headless --version 6.0.5
                    
#r "nuget: zyc.gnuplot.headless, 6.0.5"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package zyc.gnuplot.headless@6.0.5
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=zyc.gnuplot.headless&version=6.0.5
                    
Install as a Cake Addin
#tool nuget:?package=zyc.gnuplot.headless&version=6.0.5
                    
Install as a Cake Tool

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.

There are no supported framework assets in this package.

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.