Changed some docs. Removed warnings.

pull/186/head
nunombmoutinho@gmail.com 10 years ago
parent 0e1775d6c5
commit c052265886
  1. 5
      modules/plot/README.md
  2. 0
      modules/plot/doc/pics/sin_x.png
  3. 0
      modules/plot/doc/pics/x_2.png
  4. 7
      modules/plot/doc/plot.rst
  5. 2
      modules/plot/include/opencv2/plot.hpp

@ -1,6 +1,7 @@
Plot Module Overview Plot Module
==================== ===========
Created by Nuno Moutinho 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). 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).

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 60 KiB

@ -1,5 +1,6 @@
********************************** Plot - Module to Plot Data
plot. Module to Plot Data from Mat ==========================
**********************************
.. 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). 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).

@ -132,7 +132,7 @@ namespace cv
Plot(cv::Mat _plotDataX, cv::Mat _plotDataY) Plot(cv::Mat _plotDataX, cv::Mat _plotDataY)
{ {
//f the matrix is not Nx1 or 1xN //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; std::cout << "ERROR: Plot data must be a 1xN or Nx1 matrix." << std::endl;
exit(0); exit(0);

Loading…
Cancel
Save