Plotting Commands area Creates stacked areas in an axes and returns handles of the areas. axes Create a new axes or set current axes by passing a handle argument. axis Sets the scaling and range of x, y, and z axes (x by default). Called without arguments, axis turns autoscaling on. bar Creates bars in an axis and returns handles of the bars. bar3 Creates 3d bars on an axis and returns the handles of the bars. box Turn on/off the border of a 2D plot. cla Clears the current axes or axes specified by handle. clf Clears the current figure or figure specified by handle. close Close the current, or a specific, or all figure window. colorbar Turns the axes colorbar on/off. Get and set the colorbar's minimum and maximum values. colormap Gets or sets the colormap of a figure or axes. contour Creates a 2D contoured surface in an axes. contour3 Creates 3D contoured surface in an axes. datetick Sets date formatted ticks on axis. delete Deletes the file(s), f, or a graphic object, h. drawnow Forces an update of the current axes. ellipse Creates an elliptical shape on the figure. fanplot Creates a surface and a set of 3D lines defined by the x, y, and z matrices. figure Creates a new figure for plotting and uicontrols. fill Creates 2D filled in polygons of range x and y and color c. findall Finds all objects that have a property named propertyName and the value for such property is propertyValue. findall performs the same search as findobj but includes objects for which 'handlevisibility' property is set to 'off' and their children. findobj Finds all objects which have a property named propertyName and the value for such property is propertyValue. gca Returns a handle to the current axes object. gcf Returns a handle to the current figure. get Returns the value of the named property p from the graphics handle, h. If property name is omitted, all properties of h will be returned. grid Turn on/off grid lines in a plot. Toggle the states if no argument is used. hist3 Creates a 3d histogram in an axis. hold Turn on/off the "hold" state of axes. When the "hold" state is on, new plotting data will be added to the axes. isaxes Returns true if x is an axis handle; returns false if otherwise. isfigure Returns true if x is a figure graphics handle; returns false if otherwise. ishandle Returns true if x is a graphics handle; returns false if otherwise. ishold Returns true if the next plot will be added to the current one; returns false if otherwise. legend Update axes' legend text, turn on/off the legend of axes. Toggle the states if no argument is used. line Add a curve in current axes or a specified axes. loglog Plots a given dataset in 2D axes with logarithmic scales for x and y axes. mesh Creates mesh in an axes and returns handles of the mesh. meshgrid Construct a grid of points from coordinate vectors. patch Creates 2D or 3D patches in an axis. pcolor Display a matrix as a heat map. The values of input matrix z are mapped to the colors of the colormap. plot Plots a given dataset in 2D axes. plot3 Creates 3D lines in an axis and returns handles of the lines. plotyy Plots given datasets in independent y-axes and a common x-axis. polar Creates a line plot in polar coordinates. Graphics Object Properties Properties for the graphics object in OML. quiver Creates a 2D quiver plot in an axis. rectangle Creates a rectangular shape on a figure. saveas Save a figure to a specific file. scatter Creates dots in an axes and returns handles of the dots. scatter3 Creates 3D dots in an axes and returns handles of the dots. semilogx Plots a given dataset in 2D axes with logarithmic scales for the x axis. semilogy Plots a given dataset in 2D axes with logarithmic scales for the y axis. set Sets property values for graphics handles. stem Creates a stem plot in an axis and returns the stem handles. stem3 Creates a 3D stem plot in an axis and returns the stem handle. subplot Sets up a plot grid with rows by cols subwindows and sets the current axes for plotting to the location given by index. surf Creates surfaces in an axes and returns handles of the surfaces. text Creates a textbox at coordinate x,y with text 't'. title Sets the title of the plot. trimesh Creates a 3D triangulated mesh. triplot Creates a 2D triangulated mesh. trisurf Creates a 3D triangulated surface. view Sets the viewpoint for the current axes. waterfall Creates waterfall meshes in an axes and returns handles of the meshes. xlabel Annotates the x-axis. xlim Set and query range of x axis. xline Add one or more vertical lines in the current axes or a specified axes. ylabel Annotates the y-axis. ylim Set and query range of y axis. yline Add one or more horizontal lines in the current axes or a specified axes. zlabel Annotates the z-axis. zlim Set and query range of z axis.