plot_client 1.4.4

dotnet add package plot_client --version 1.4.4
                    
NuGet\Install-Package plot_client -Version 1.4.4
                    
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.4.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="plot_client" Version="1.4.4" />
                    
Directory.Packages.props
<PackageReference Include="plot_client" />
                    
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 plot_client --version 1.4.4
                    
#r "nuget: plot_client, 1.4.4"
                    
#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.4.4
                    
#: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.4.4
                    
Install as a Cake Addin
#tool nuget:?package=plot_client&version=1.4.4
                    
Install as a Cake Tool

Overview

C++ library to create plots. Point clouds are rendered by an application plot.exe installed via one of dependencis plot_viewer.nupkg. This library is a client library to pass point cloud data to render in the application. Some of rendering configurations including point styles, mesh styles, frame styles can be modified by this library.

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 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.

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
1.4.4 696 12/30/2022
1.4.3 657 10/11/2022
1.4.2 629 10/1/2022
1.4.1 833 10/1/2022 1.4.1 is deprecated because it has critical bugs.
1.4.0 666 8/1/2021
1.3.4 743 7/2/2020
1.3.3 654 5/14/2020
1.3.2 717 5/14/2020
1.3.1 765 5/4/2020
1.1.2 1,508 4/17/2020 1.1.2 is deprecated because it has critical bugs.

Supports Visual Studio Toolset from v140 to v143.