hi friends
i run this example https://vtk.org/Wiki/VTK/Examples/Cxx/Plotting/ScatterPlot
but i receive error
i attach images that show program and error
how can i resolve it ??
i resolve it by adding
#include “vtkAutoInit.h”
VTK_MODULE_INIT(vtkRenderingOpenGL2); // VTK was built withvtkRenderingOpenGL2
VTK_MODULE_INIT(vtkInteractionStyle);
VTK_MODULE_INIT(vtkRenderingVolumeOpenGL2);
#pragma warning(disable : 4996)
before main function
but i have new error
“vtkContextDevice2D”
how to resolve new error ??
Note that you can display plots (line, bar, scatter) in Slicer from Table nodes using Plots module. You can also create a plot from Python as shown in this example.
thanks
i can solve it