# -*- coding: utf-8 -*- # PCLPlotter # http://pointclouds.org/documentation/tutorials/pcl_plotter.php#pcl-plotter import pcl # //defining a plotter # pcl::visualization::PCLPlotter * plotter = new PCLPlotter (); # # //defining the polynomial function, y = x^2. Index of x^2 is 1, rest is 0 # vector func1 (3,0); # func1[2] = 1; # # //adding the polynomial func1 to the plotter with [-10, 10] as the range in X axis and "y = x^2" as title # plotter->addPlotData (func1, -10, 10, "y = x^2"); # # //display the plot, DONE! # plotter->plot ();