MATLAB Function Reference GRAPHICAL VISUALIZATION BASIC PLOTS AND GRAPHS bar Vertical bar chart barh Horizontal bar chart hist Plot histograms hold Hold current graph *loglog Plot using log-log scales pie Pie plot plot Plot vectors or matrices. polar Polar coordinate plot *semilogx Semi-log scale plot *semilogy Semi-log scale plot *subplot Create axes in tiled positions PLOT ANNOTATION AND GRIDS datetick Date formatted tick labels *grid Grid lines for 2-D and 3-D plots *gtext Place text on a 2-D graph using a mouse *legend Graph legend for lines and patches plotyy Plot graphs with Y tick labels on the left and right *title Titles for 2-D and 3-D plots *xlabel X-axis labels for 2-D and 3-D plots *ylabel Y-axis labels for 2-D and 3-D plots zlabel Z-axis labels for 3-D plots VIEW CONTROL *xlim Set or get the current x-axis limits *ylim Set or get the current y-axis limits zlim Set or get the current z-axis limits PRINTING *orient Hardcopy paper orientation *print Print graph or save graph to file HANDLE GRAPHICS, GENERAL copyobj Make a copy of a graphics object and its children findobj Find objects with specified property values gcbo Return object whose callback is currently executing gco Return handle of current object *get Get object properties rotate Rotate objects about specified origin and direction ishandle True for graphics objects *set Set object properties HANDLE GRAPHICS, OBJECT CREATION *axes Create Axes object *figure Create Figure (graph) windows image Create Image (2-D matrix) light Create Light object (illuminates Patch and Surface) line Create Line object (3-D polylines) patch Create Patch object (polygons) surface Create Surface (quadrilaterals) *text Create Text object (character strings) uicontextmenu Create context menu (popup associated with object) HANDLE GRAPHICS, FIGURE WINDOWS clc Clear figure window clf Clear figure close Close specified window gcf Get current figure handle HANDLE GRAPHICS, AXES axis Plot axis scaling and appearance cla Clear Axes gca Get current Axes handle