ILNumerics.Community.Avalonia
7.0.0.280
dotnet add package ILNumerics.Community.Avalonia --version 7.0.0.280
NuGet\Install-Package ILNumerics.Community.Avalonia -Version 7.0.0.280
<PackageReference Include="ILNumerics.Community.Avalonia" Version="7.0.0.280" />
<PackageVersion Include="ILNumerics.Community.Avalonia" Version="7.0.0.280" />
<PackageReference Include="ILNumerics.Community.Avalonia" />
paket add ILNumerics.Community.Avalonia --version 7.0.0.280
#r "nuget: ILNumerics.Community.Avalonia, 7.0.0.280"
#:package ILNumerics.Community.Avalonia@7.0.0.280
#addin nuget:?package=ILNumerics.Community.Avalonia&version=7.0.0.280
#tool nuget:?package=ILNumerics.Community.Avalonia&version=7.0.0.280
ILNumerics.Community.Avalonia
Integration package for ILNumerics (http://ilnumerics.net/) scene graphs and plot cubes with Avalonia (https://avaloniaui.net/platforms) cross-platform UI framework. ILNumerics.Community.Avalonia
provides an ILNumerics panel implementation for Avalonia and a set of helper / convenience functions to make embedding ILNumerics scenes into Avalonia apps straightforward.
This package makes it easy to host ILNumerics scene graphs and 2D/3D plot cubes inside Avalonia applications. The panel acts as a bridge between Avalonia's UI system and ILNumerics rendering, allowing you to build interactive visualizations that run cross-platform.
Note: This package currently uses a software renderer on all platforms. It generally provides a smooth rendering experience for moderate data sizes, but performance may vary per platform and scene complexity.
Compatibility
- .NET: targets
.NET 9
. - ILNumerics:
ILNumerics 7.3+
- Avalonia: compatible with
Avalonia 11
.
Note: Desktop platforms (Windows, Linux, macOS) are working well. There are currently some outstanding issues on mobile platforms; please refer to the issue tracker for details and status updates.
Usage
Add the ILNumerics panel to your user interface (in XAML or in code). The example below shows a simple XAML usage; adjust XML namespaces as appropriate for your project:
<avalonia:Panel Background="White" x:Name="ilPanel" />
Assign a scene to the panel to render it. A minimal example in C#:
// Create a Scene containing a PlotCube and a Surface. Replace 'B' with your data array.
ilPanel.Scene = new Scene
{
new PlotCube(twoDMode: false)
{
new Surface(tosingle(B), colormap: Colormaps.Jet) { new Colorbar() }
}
};
// Call Configure so ILNumerics computes bounds and internal state required for rendering.
ilPanel.Scene.Configure();
Notes:
- Call
Configure()
on the scene after setup. - Assign a new
Scene
or modify an existing one to update what is rendered.
Examples and demos
This repository includes demo projects under the Demo/
folder showcasing usage across desktop, browser and mobile targets. Run the demos to see concrete usage and to experiment with different scenes and rendering configurations.
License
ILNumerics.Community.Avalonia is licensed under the terms of the MIT license (http://opensource.org/licenses/MIT, see LICENSE.txt).
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- Avalonia (>= 11.3.7)
- ILNumerics.Core (>= 7.3.61)
- ILNumerics.Drawing (>= 7.3.61)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.