cv.Plot2d - MATLAB File Help Go to online doc for cv.Plot2d
cv.Plot2d

Class to plot 2D data

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).

Example

x = linspace(-2*pi, 2*pi, 100);
y = sin(x) + randn(size(x))*0.1;
p = cv.Plot2d(x, y);
p.PlotSize = [640 480];
img = p.render();
imshow(img)
See also
Class Details
Superclasses handle
Sealed false
Construct on load false
Constructor Summary
Plot2d Creates Plot2d object 
Property Summary
GridLinesNumber number of grid lines. default 10 
InvertOrientation invert plot orientation. default false 
MaxX max value for x-axis 
MaxY max value for y-axis 
MinX min value for x-axis 
MinY min value for y-axis 
NeedPlotLine Switches data visualization mode. If true then neighbour plot points 
PlotAxisColor axis color (RGB). default [0,0,255] 
PlotBackgroundColor background color (RGB). default [0,0,0] 
PlotGridColor grid color (RGB). default [255,255,255] 
PlotLineColor line color (RGB). default [0,255,255] 
PlotLineWidth line width. default 1 
PlotSize plot dimensions `[w,h]` ([400,300] minimum size). default [600,400] 
PlotTextColor text color (RGB). default [255,255,255] 
PointIdxToPrint the index of the point in data array which coordinates will be 
ShowGrid whether grid lines are drawn. default true 
ShowText whether text is drawn. default true 
id Object ID 
Method Summary
  addlistener Add listener for event. 
  clear Clears the algorithm state 
  delete Destructor 
  empty Checks if detector object is empty 
  eq == (EQ) Test handle equality. 
  findobj Find objects matching specified conditions. 
  findprop Find property of MATLAB handle object. 
  ge >= (GE) Greater than or equal relation for handles. 
  getDefaultName Returns the algorithm string identifier 
  gt > (GT) Greater than relation for handles. 
Sealed   isvalid Test handle validity. 
  le <= (LE) Less than or equal relation for handles. 
  listener Add listener for event without binding the listener to the source object. 
  load Loads algorithm from a file or a string 
  lt < (LT) Less than relation for handles. 
  ne ~= (NE) Not equal relation for handles. 
  notify Notify listeners of event. 
  render Renders the plot to a matrix 
  save Saves the algorithm parameters to a file 
Event Summary
ObjectBeingDestroyed Notifies listeners that a particular object has been destroyed.