![]() |
VOOZH | about |
dotnet add package ILNumerics.Community.TikzExport --version 7.1.1.35
NuGet\Install-Package ILNumerics.Community.TikzExport -Version 7.1.1.35
<PackageReference Include="ILNumerics.Community.TikzExport" Version="7.1.1.35" />
<PackageVersion Include="ILNumerics.Community.TikzExport" Version="7.1.1.35" />Directory.Packages.props
<PackageReference Include="ILNumerics.Community.TikzExport" />Project file
paket add ILNumerics.Community.TikzExport --version 7.1.1.35
#r "nuget: ILNumerics.Community.TikzExport, 7.1.1.35"
#:package ILNumerics.Community.TikzExport@7.1.1.35
#addin nuget:?package=ILNumerics.Community.TikzExport&version=7.1.1.35Install as a Cake Addin
#tool nuget:?package=ILNumerics.Community.TikzExport&version=7.1.1.35Install as a Cake Tool
Export functionality for ILNumerics (http://ilnumerics.net/) scene graphs and plot cubes to TikZ/PGFPlots (LaTeX graphics package, see Wikipedia).
PGF/TikZ is a pair of languages for producing vector graphics from a geometric or algebraic description. PGF is a lower-level language that provides the primitives for drawing graphics, while TikZ is a collection of higher-level macros built on top of PGF that make it easier to describe complex figures. Together they are commonly used in LaTeX documents to produce technical illustrations, plots, and publication-quality figures. PGFPlots is a TeX package that builds on PGF/TikZ and provides a high-level interface specifically geared toward creating 2D and 3D plots (line plots, surface plots, error bars, etc.). Exporting ILNumerics scenes to PGF/TikZ/PGFPlots allows embedding figures directly in LaTeX documents while retaining sharp vector graphics and fine control over styling.
Supported plot types
As of February 2026 (only) the following plot types are supported:
Install the NuGet package:
dotnet add package ILNumerics.Community.TikzExport
Two main entry points are provided:
Both methods accept an optional Size canvasSize parameter that specifies the output canvas in millimeters. If omitted, the default is 120 x 100 mm.
Export scene to a string
// Create or obtain an ILNumerics scene (pseudocode)
// var scene = new Scene() { ... };
string tikz = TikzExport.ExportString(scene);
Export scene to a file
string filePath = "figure.tikz";
TikzExport.ExportFile(scene, filePath);
// The file 'figure.tikz' now contains the TikZ/PGFPlots markup
Convert Scene to a Chart object (CSPlotlySlim Chart) for programmatic inspection
CSPlotlySlim.Chart.Chart? chart = ILNumerics.Community.WebExport.WebExport.GetChart(scene);
// (optional) Manipluate chart object as needed
string? html = chart?.Render();
Specify a custom canvas size (millimeters)
int mmWidth = 160;
int mmHeight = 120;
var canvasSize = Size(mmWidth, mmHeight);
string tikz = TikzExport.ExportString(scene, canvasSize);
// OR
TikzExport.ExportFile(scene, filePath, canvasSize);
Contributions, bug reports and feature requests are welcome. Please open an issue or a pull request on the GitHub repository.
ILNumerics.Community.TikzExport is licensed under the MIT license (http://opensource.org/licenses/MIT). See LICENSE.txt for details.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.