diff --git a/modules/plot/README.md b/modules/plot/README.md index 5c0cc2c1a..d47b95467 100644 --- a/modules/plot/README.md +++ b/modules/plot/README.md @@ -1,6 +1,7 @@ -Plot Module Overview -==================== +Plot Module +=========== Created by Nuno Moutinho This Plot module allows you to easily plot data in 1D or 2D. You can change the size of the window, the limits of the axis and the colors of each element. You can also show in real time the plot you are building or save the plot as an image (png). + diff --git a/modules/plot/doc/images/sin_x.png b/modules/plot/doc/pics/sin_x.png similarity index 100% rename from modules/plot/doc/images/sin_x.png rename to modules/plot/doc/pics/sin_x.png diff --git a/modules/plot/doc/images/x_2.png b/modules/plot/doc/pics/x_2.png similarity index 100% rename from modules/plot/doc/images/x_2.png rename to modules/plot/doc/pics/x_2.png diff --git a/modules/plot/doc/plot.rst b/modules/plot/doc/plot.rst index d50bf01e9..04e0e1a7a 100644 --- a/modules/plot/doc/plot.rst +++ b/modules/plot/doc/plot.rst @@ -1,5 +1,6 @@ -********************************** -plot. Module to Plot Data from Mat -********************************** +Plot - Module to Plot Data +========================== + +.. highlight:: cpp This Plot module allows you to easily plot data in 1D or 2D. You can change the size of the window, the limits of the axis and the colors of each element. You can also show in real time the plot you are building or save the plot as an image (png). diff --git a/modules/plot/include/opencv2/plot.hpp b/modules/plot/include/opencv2/plot.hpp index d934c27dd..cf43a54cd 100644 --- a/modules/plot/include/opencv2/plot.hpp +++ b/modules/plot/include/opencv2/plot.hpp @@ -132,7 +132,7 @@ namespace cv Plot(cv::Mat _plotDataX, cv::Mat _plotDataY) { //f the matrix is not Nx1 or 1xN - if(_plotDataX.cols > 1 && _plotDataX.rows > 1 || _plotDataY.cols > 1 && _plotDataY.rows > 1) + if((_plotDataX.cols > 1 && _plotDataX.rows > 1) || (_plotDataY.cols > 1 && _plotDataY.rows > 1)) { std::cout << "ERROR: Plot data must be a 1xN or Nx1 matrix." << std::endl; exit(0);