50 #include <visp/vpConfig.h>
51 #include <visp/vpPlot.h>
55 #if defined(VISP_HAVE_DISPLAY)
66 plot.setTitle(0,
"First graphic");
67 plot.setUnitX(0,
"time (s)");
68 plot.setUnitY(0,
"y");
69 plot.setUnitZ(0,
"z");
70 plot.setLegend(0,0,
"y^2+z^2=1 and y(0) = 1");
71 plot.setLegend(0,1,
"y^2+z^2=1 and y(0) = -1");
82 unsigned long iter = 0;
84 std::cout <<
"Hit CTRL-C to exit...";
93 plot.plot(0,0, x, y,z*zsign);
94 plot.plot(0,1, x, -y,-z*zsign);
107 plot.plot(0,0, x, y,z*zsign);
108 plot.plot(0,1, x, -y,-z*zsign);
115 std::cout <<
"Plot functionalities are not avalaible since no display is available." << std::endl;
static const vpColor green
This class enables real time drawing of 2D or 3D graphics. An instance of the class open a window whi...