plot_client 1.3.3
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package plot_client --version 1.3.3
NuGet\Install-Package plot_client -Version 1.3.3
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="plot_client" Version="1.3.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="plot_client" Version="1.3.3" />
<PackageReference Include="plot_client" />
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 plot_client --version 1.3.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: plot_client, 1.3.3"
#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 plot_client@1.3.3
#: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=plot_client&version=1.3.3
#tool nuget:?package=plot_client&version=1.3.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Overview
C++ library to build plots.
Features
- Draw points
- Draw line segments
- Draw polylines
- Draw meshes using arrays of vertex indices
- Configure point size, line thickness, colors and so on
Sample code
Here is sample code to build a plot using class plotclient::plot.
#include <plot_client interface/plot.h>
#include <plot_client interface/plot_exception.h>
/// Point data buffer///
auto num_points = 1000;
auto x = new double[num_points];
auto y = new double[num_points];
auto z = new double[num_points];
auto ref = new double[num_points];
//////////////////////////////////////
// Fill x, y, z and color arrays here
//////////////////////////////////////
try
{
auto plot = plotclient::plot::create(L"sample points");
plot->set_points3d(num_points, x, y, z);
plot->set_colorrefs(ref);
plot->set_title(L"Num of points: %d", num_points);
plot->set_frame_ratio(1.0f, 1.0f, 0.5f);
plot->set_window_size(800, 600);
plot->build();
}catch (plotclient::plot_exception ex)
{
// Handle the exception if any.
}
delete[] x;
delete[] y;
delete[] z;
delete[] color;
Note that "plot->build()" internally executes plot.exe which is automatically deployed to the current and output paths. Some other settings are configurable. See the main header "plot.h" to find available settings.
plot viewer quick manual
- R-click & drag : Rotate in 3D
- Ctrl & R-click & drag : Rotate along z direction in 3D
- L-click & drag : Move xyz range
- L-click & drag on color scale: Move color scale range
- Wheel on plot : Scale xyz range
- Wheel on color scale : Scale color scale range
- X & Wheel : Scale x range
- Y & Wheel : Scale y range
- Z & Wheel : Scale z range
- Ctrl & Wheel : Change magnification
- Ctrl & P : Change projection mode
- Ctrl & F : ON and OFF frames
- Ctrl & I : Go back to initial state
- Ctrl & S : Save as a file (.plot is not supported yet)
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| native | native is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
- core_math (>= 1.0.1 && < 2.0.0)
- plot_viewer (>= 1.3.3 && < 2.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Supports Visual Studio Toolset from v140 to v142.