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