46 #include <visp3/core/vpConfig.h> 47 #include <visp3/gui/vpPlot.h> 51 #if defined(VISP_HAVE_DISPLAY) 63 plot.setTitle(0,
"First graphic");
64 plot.setUnitX(0,
"time (s)");
65 plot.setUnitY(0,
"y");
66 plot.setUnitZ(0,
"z");
67 plot.setLegend(0, 0,
"y^2+z^2=1 and y(0) = 1");
68 plot.setLegend(0, 1,
"y^2+z^2=1 and y(0) = -1");
79 unsigned long iter = 0;
81 std::cout <<
"Hit CTRL-C to or right mouse button to exit..." << std::endl;
87 z = sqrt(1.0 - y * y);
116 std::cout <<
"Catch an exception: " << e << std::endl;
120 std::cout <<
"Plot functionalities are not avalaible since no display is "
error that can be emited by ViSP classes.
static const vpColor green
This class enables real time drawing of 2D or 3D graphics. An instance of the class open a window whi...