Function Reference

Plotting

Plotting Basics

plot
Produces two-dimensional plots.
semilogx
Produce a two-dimensional plot using a log scale for the X axis.
semilogy
Produce a two-dimensional plot using a log scale for the Y axis.
loglog
Produce a two-dimensional plot using log scales for both axes.
bar
Produce a bar graph from two vectors of x-y data.
barh
Produce a horizontal bar graph from two vectors of x-y data.
hist
Produce histogram counts or plots.
stairs
Produce a stairstep plot.
stem
Plot a stem graph from two vectors of x-y data.
contour
Plot level curves (contour lines) of the matrix Z, using the contour matrix C computed by `contourc' from the same arguments; see the latter for their interpretation.
contourf
Compute and plot filled contours of the matrix Z.
contourc
Compute isolines (countour lines) of the matrix Z.
errorbar
This function produces two-dimensional plots with errorbars.
semilogxerr
Produce two-dimensional plots on a semilogarithm axis with errorbars.
semilogyerr
Produce two-dimensional plots on a semilogarithm axis with errorbars.
loglogerr
Produce two-dimensional plots on double logarithm axis with errorbars.
polar
Make a two-dimensional plot given the polar coordinates THETA and RHO.
pie
Produce a pie chart.
quiver
Plot the `(U, V)' components of a vector field in an `(X, Y)' meshgrid.
pcolor
Density plot for given matrices X, and Y from `meshgrid' and a matrix C corresponding to the X and Y coordinates of the mesh's vertices.
area
Area plot of cummulative sum of the columns of Y.
axis
Set axis limits for plots.
caxis
Set color axis limits for plots.
fplot
Plot a function FN, within the defined limits.
ezplot
Plots in two-dimensions the curve defined by F.
ezcontour
Plots the contour lines of a function.
ezcontourf
Plots the filled contour lines of a function.
ezpolar
Plots in polar plot defined by a function.
mesh
Plot a mesh given matrices X, and Y from `meshgrid' and a matrix Z corresponding to the X and Y coordinates of the mesh.
meshc
Plot a mesh and contour given matrices X, and Y from `meshgrid' and a matrix Z corresponding to the X and Y coordinates of the mesh.
hidden
Manipulation the mesh hidden line removal.
surf
Plot a surface given matrices X, and Y from `meshgrid' and a matrix Z corresponding to the X and Y coordinates of the mesh.
surfc
Plot a surface and contour given matrices X, and Y from `meshgrid' and a matrix Z corresponding to the X and Y coordinates of the mesh.
meshgrid
Given vectors of X and Y and Z coordinates, and returning 3 arguments, return three dimensional arrays corresponding to the X, Y, and Z coordinates of a mesh.
ndgrid
Given n vectors X1, .
plot3
Produce three-dimensional plots.
view
Set or get the viewpoint for the current axes.
shading
Set the shading of surface or patch graphic objects.
ezplot3
Plots in three-dimensions the curve defined parametrically.
ezmesh
Plots the mesh defined by a function.
ezmeshc
Plots the mesh and contour lines defined by a function.
ezsurf
Plots the surface defined by a function.
ezsurfc
Plots the surface and contour lines defined by a function.
title
Create a title object and return a handle to it.
legend
Display a legend for the current axes using the specified strings as labels.
text
Create a text object with text LABEL at position X, Y, Z on the current axes.
xlabel
Specify x, y, and z axis labels for the current figure.
box
Control the display of a border around the plot.
grid
Force the display of a grid on the plot.
colorbar
Adds a colorbar to the current axes.
subplot
Set up a plot grid with COLS by ROWS subwindows and plot in location given by INDEX.
figure
Set the current plot window to plot window N.
print
Print a graph, or save it to a file
orient
Set the default print orientation.
ginput
Return which mouse buttons were pressed and keys were hit on the current figure.
waitforbuttonpress
Wait for button or mouse press.
gtext
Place text on the current figure.
sombrero
Produce the familiar three-dimensional sombrero plot using N grid lines.
peaks
Generate a function with lots of local maxima and minima.

Advanced Plotting

ishandle
Return true if H is a graphics handle and false otherwise.
isfigure
Return true if H is a graphics handle that contains a figure object and false otherwise.
gcf
Return the current figure handle.
gca
Return a handle to the current axis object.
get
Return the named property P from the graphics handle H.
set
Set the named property value or vector P to the value V for the graphics handle H.
ancestor
Return the first ancestor of handle object H whose type matches TYPE, where TYPE is a character string.
allchild
Find all children including hidden children of an object.
axes
Create an axes object and return a handle to it.
line
Create line object from X and Y and insert in current axes object.
patch
Create patch object from X and Y with color C and insert in the current axes object.
surface
Plot a surface graphic object given matrices X, and Y from `meshgrid' and a matrix Z corresponding to the X and Y coordinates of the surface.
drawnow
Undocumented internal function.
refresh
Refresh a figure, forcing it to be redrawn.
newplot
Prepare graphics engine to produce a new plot.
hold
Tell Octave to `hold' the current data on the graph when executing subsequent plotting commands.
ishold
Return true if the next line will be added to the current plot, or false if the plot device will be cleared before drawing the next line.
clf
Clear the current figure.
shg
Show the graph window.
delete
Delete the named file or graphics handle.
close
Close figure window(s) by calling the function specified by the `"closerequestfcn"' property for each figure.
closereq
Close the current figure and delete all graphics objects associated with it.
findobj
Find object with specified property values.
findall
Find object with specified property values including hidden handles.
gcbo
Return a handle to the object whose callback is currently executing.
gcbf
Return a handle to the figure containing the object whose callback is currently executing.
hggroup
Create group object with parent H.
addproperty
Create a new property named NAME in graphics object H.
addlistener
Register FCN as listener for the property PROP of the graphics object H.
linkprop
Links graphics object properties, such that a change in one is propagated to the others.
refreshdata
Evaluates any datasource properties of the current figure and updates the corresponding data.
backends
Not implemented.
available_backends
Returns resgistered graphics backends.
gnuplot_binary
Query or set the name of the program invoked by the plot command.
gnuplot_use_title_option
Not implemented.