Path: Common/Graphics
% Add a plot to the current axis of a plot page. Add to a plot using the Plot2D syntax. Data is indexed into a subplot grid and labels are applied automatically. The data series must be in rows. Any of the inputs, except y, may be omitted or []. For example, to plot a position in a (3,n) matrix: AddPlot( t, r, 'Time', {'X','Y','Z'}, 'Position Vector' ) or even just AddPlot( t, r ) -------------------------------------------------------------------------- Form: hA = AddPlot( x, y, xL, yL, figTitle, plotType ) -------------------------------------------------------------------------- ------ Inputs ------ x (m,:) x values y (n,:) y values xL (m,:) or {m} x-axis label(s) yL (n,:) or {n} y-axis label(s) figTitle (:) Figure title plotType (n,4) or {n} Type of axes 'xlog', 'ylog', 'log', 'lin'. 'lin' is the default. ------- Outputs ------- hA (:) Data structure of handles to line objects .h --------------------------------------------------------------------------
Common: General/CellToMat Common: Graphics/NewFig Common: Graphics/PltStyle
Back to the Common Module page