
- •Color control
- •Interpolated shading, which is also known as Gouraud shading, is
- •Variant of colordef.
- •Is less than or equal to 256. If the length of newmap is
- •Lighting
- •View direction.
- •Values can be set with a single statement.
- •Color maps
- •Increasing m increases the granularity emphasized by the map.
- •In the hsv map. However, prism uses repeated copies of its six
- •Implicit arguments (similar to handle callbacks):
- •If strcmpi(objTag,'DoNotIgnore')
- •Implicit arguments (similar to handle callbacks):
- •If strcmpi(objTag,'DoNotIgnore')
- •Camera control
- •High level camera control
- •In dtheta and dphi (both in degrees). Dtheta is the horizontal
- •Is moved. If targetmode is 'movetarget' (the default), both the
- •If zf is greater than 1, the scene appears larger. If zf is
- •High level light control
- •Vertical elevation (both in degrees). The interpretation of azimuth
- •Hardcopy and printing
- •If you specify a filename, matlab directs output to a file instead of
- •150 For figures in image formats and when
- •In portrait orientation for subsequent print operations.
- •X,y,z Dir property of axes.
If strcmpi(objTag,'DoNotIgnore')
flag = true;
else
flag = false;
end
EXAMPLE 5: (copy into a file)
function demo
% Listen to zoom events
plot(1:10);
h = zoom;
set(h,'ActionPreCallback',@myprecallback);
set(h,'ActionPostCallback',@mypostcallback);
set(h,'Enable','on');
function myprecallback(obj,evd)
disp('A zoom is about to occur.');
function mypostcallback(obj,evd)
newLim = get(evd.Axes,'XLim');
msgbox(sprintf('The new X-Limits are [%.2f %.2f].',newLim));
Use LINKAXES to link zooming across multiple axes.
See also pan, rotate3d, linkaxes.
Reference page in Help browser
doc zoom
<grid> - Grid lines.
GRID Grid lines.
GRID ON adds major grid lines to the current axes.
GRID OFF removes major and minor grid lines from the current axes.
GRID MINOR toggles the minor grid lines of the current axes.
GRID, by itself, toggles the major grid lines of the current axes.
GRID(AX,...) uses axes AX instead of the current axes.
GRID sets the XGrid, YGrid, and ZGrid properties of
the current axes.
set(AX,'XMinorGrid','on') turns on the minor grid.
See also title, xlabel, ylabel, zlabel, axes, plot, box.
Reference page in Help browser
doc grid
<box> - Axis box.
BOX Axis box.
BOX ON adds a box to the current axes.
BOX OFF takes if off.
BOX, by itself, toggles the box state of the current axes.
BOX(AX,...) uses axes AX instead of the current axes.
BOX sets the Box property of an axes.
See also grid, axes.
Reference page in Help browser
doc box
<hold> - Hold current graph.
HOLD Hold current graph
HOLD ON holds the current plot and all axis properties so that
subsequent graphing commands add to the existing graph.
HOLD OFF returns to the default mode whereby PLOT commands erase
the previous plots and reset all axis properties before drawing
new plots.
HOLD, by itself, toggles the hold state.
HOLD does not affect axis autoranging properties.
HOLD ALL holds the plot and the current color and linestyle so
that subsequent plotting commands will not reset the color and
linestyle.
HOLD(AX,...) applies the command to the Axes object AX.
Algorithm note:
HOLD ON sets the NextPlot property of the current figure and
axes to "add".
HOLD OFF sets the NextPlot property of the current axes to
"replace".
See also ishold, newplot, figure, axes.
Reference page in Help browser
doc hold
<axes> - Create axes in arbitrary positions.
AXES Create axes in arbitrary positions.
AXES('position', RECT) opens up an axis at the specified location
and returns a handle to it.
RECT = [left, bottom, width, height] specifies the location and
size of the side of the axis box, relative to the lower-left
corner of the Figure window, in normalized units where (0,0)
is the lower-left corner and (1.0,1.0) is the upper-right.
AXES, by itself, creates the default full-window axis and returns
a handle to it.
AXES(H) makes the axis with handle H current.
Execute GET(H) to see a list of axes object properties and
their current values. Execute SET(H) to see a list of axes
object properties and legal property values.
See also subplot, axis, figure, gca, cla.
Reference page in Help browser
doc axes
<subplot> - Create axes in tiled positions.
SUBPLOT Create axes in tiled positions.
H = SUBPLOT(m,n,p), or SUBPLOT(mnp), breaks the Figure window
into an m-by-n matrix of small axes, selects the p-th axes for
the current plot, and returns the axes handle. The axes are
counted along the top row of the Figure window, then the second
row, etc. For example,
SUBPLOT(2,1,1), PLOT(income)
SUBPLOT(2,1,2), PLOT(outgo)
plots income on the top half of the window and outgo on the
bottom half. If the CurrentAxes is nested in a uipanel the
panel is used as the parent for the subplot instead of the
current figure.
SUBPLOT(m,n,p), if the axes already exists, makes it current.
SUBPLOT(m,n,p,'replace'), if the axes already exists, deletes it and
creates a new axes.
SUBPLOT(m,n,p,'align') places the axes so that the plot boxes
are aligned, but does not prevent the labels and ticks from
overlapping.
SUBPLOT(m,n,P), where P is a vector, specifies an axes position
that covers all the subplot positions listed in P.
SUBPLOT(H), where H is an axes handle, is another way of making
an axes current for subsequent plotting commands.
SUBPLOT('position',[left bottom width height]) creates an
axes at the specified position in normalized coordinates (in
in the range from 0.0 to 1.0).
SUBPLOT(..., PROP1, VALUE1, PROP2, VALUE2, ...) sets the
specified property-value pairs on the subplot axes. To add the
subplot to a specific figure pass the figure handle as the
value for the 'Parent' property.
If a SUBPLOT specification causes a new axes to overlap an
existing axes, the existing axes is deleted - unless the position
of the new and existing axes are identical. For example,
the statement SUBPLOT(1,2,1) deletes all existing axes overlapping
the left side of the Figure window and creates a new axes on that
side - unless there is an axes there with a position that exactly
matches the position of the new axes (and 'replace' was not specified),
in which case all other overlapping axes will be deleted and the
matching axes will become the current axes.
SUBPLOT(111) is an exception to the rules above, and is not
identical in behavior to SUBPLOT(1,1,1). For reasons of backwards
compatibility, it is a special case of subplot which does not
immediately create an axes, but instead sets up the figure so that
the next graphics command executes CLF RESET in the figure
(deleting all children of the figure), and creates a new axes in
the default position. This syntax does not return a handle, so it
is an error to specify a return argument. The delayed CLF RESET
is accomplished by setting the figure's NextPlot to 'replace'.
Be aware when creating subplots from scripts that the Position
property of subplots is not finalized until either a drawnow
command is issued, or MATLAB returns to await a user command.
That is, the value obtained for subplot i by the command
get(h(i),'Position') will not be correct until the script
refreshes the plot or exits.
See also gca, gcf, axes, figure, uipanel
Reference page in Help browser
doc subplot
<daspect> - Data aspect ratio.
DASPECT Data aspect ratio.
DAR = DASPECT gets the data aspect ratio of the
current axes.
DASPECT([X Y Z]) sets the data aspect ratio.
DARMODE = DASPECT('mode') gets the data aspect ratio mode.
DASPECT(mode) sets the data aspect ratio mode.
(mode can be 'auto' or 'manual')
DASPECT(AX,...) uses axes AX instead of current axes.
DASPECT sets or gets the DataAspectRatio or DataAspectRatioMode
property of an axes.
See also pbaspect, xlim, ylim, zlim.
Reference page in Help browser
doc daspect
<pbaspect> - Plot box aspect ratio.
PBASPECT Plot box aspect ratio.
PBAR = PBASPECT gets the plot box aspect ratio of the
current axes.
PBASPECT([X Y Z]) sets the plot box aspect ratio.
PBARMODE = PBASPECT('mode') gets the plot box aspect ratio mode.
PBASPECT(mode) sets the plot box aspect ratio mode.
(mode can be 'auto' or 'manual')
PBASPECT(AX,...) uses axes AX instead of current axes.
PBASPECT sets or gets the PlotBoxAspectRatio or
PlotBoxAspectRatioMode property of an axes.
See also daspect, xlim, ylim, zlim.
Reference page in Help browser
doc pbaspect
<xlim> - X limits.
XLIM X limits.
XL = XLIM gets the x limits of the current axes.
XLIM([XMIN XMAX]) sets the x limits.
XLMODE = XLIM('mode') gets the x limits mode.
XLIM(mode) sets the x limits mode.
(mode can be 'auto' or 'manual')
XLIM(AX,...) uses axes AX instead of current axes.
XLIM sets or gets the XLim or XLimMode property of an axes.
See also pbaspect, daspect, ylim, zlim.
Reference page in Help browser
doc xlim
<ylim> - Y limits.
YLIM Y limits.
YL = YLIM gets the y limits of the current axes.
YLIM([YMIN YMAX]) sets the y limits.
YLMODE = YLIM('mode') gets the y limits mode.
YLIM(mode) sets the y limits mode.
(mode can be 'auto' or 'manual')
YLIM(AX,...) uses axes AX instead of current axes.
YLIM sets or gets the YLim or YLimMode property of an axes.
See also pbaspect, daspect, xlim, zlim.
<zlim> - Z limits.
ZLIM Z limits.
ZL = ZLIM gets the z limits of the current axes.
ZLIM([ZMIN ZMAX]) sets the z limits.
ZLMODE = ZLIM('mode') gets the z limits mode.
ZLIM(mode) sets the z limits mode.
(mode can be 'auto' or 'manual')
ZLIM(AX,...) uses axes AX instead of current axes.
ZLIM sets or gets the ZLim or ZLimMode property of an axes.
See also pbaspect, daspect, xlim, ylim.
Viewpoint control
<view> - 3-D graph viewpoint specification.
VIEW 3-D graph viewpoint specification.
VIEW(AZ,EL) and VIEW([AZ,EL]) set the angle of the view from which an
observer sees the current 3-D plot. AZ is the azimuth or horizontal
rotation and EL is the vertical elevation (both in degrees). Azimuth
revolves about the z-axis, with positive values indicating counter-
clockwise rotation of the viewpoint. Positive values of elevation
correspond to moving above the object; negative values move below.
VIEW([X Y Z]) sets the view angle in Cartesian coordinates. The
magnitude of vector X,Y,Z is ignored.
Here are some examples:
AZ = -37.5, EL = 30 is the default 3-D view.
AZ = 0, EL = 90 is directly overhead and the default 2-D view.
AZ = EL = 0 looks directly up the first column of the matrix.
AZ = 180 is behind the matrix.
VIEW(2) sets the default 2-D view, AZ = 0, EL = 90.
VIEW(3) sets the default 3-D view, AZ = -37.5, EL = 30.
[AZ,EL] = VIEW returns the current azimuth and elevation.
T = VIEW returns the current general 4-by-4 transformation matrix.
VIEW(AX,...) uses axes AX instead of the current axes.
See also viewmtx, the axes properties view, Xform.
Overloaded methods:
phytree/view
clustergram/view
HeatMap/view
DynamicSystem/view
idmodel/view
xregmodel/view
localmod/view
modeldev/view
mdevtestplan/view
mdevproject/view
mdev_local/view
cgtradeofftblnode/view
cgtradeoffnode/view
cgtablenode/view
cgoptimoutnode/view
cgoptimnode/view
cgnormnode/view
cgnode/view
cgmodelnode/view
cgfeaturenode/view
cgddnode/view
cgdatasetnode/view
network/view
vrworld/view
classregtree/view
Reference page in Help browser
doc view
<viewmtx> - View transformation matrix.
VIEWMTX View transformation matrix.
A=VIEWMTX(AZ,EL) returns the 4x4 orthographic transformation
matrix, A, used to project 3-D vectors onto the 2-D plot surface.
Uses the same definition for azimuth and elevation as VIEW, in
particular, AZ and EL must be in degrees. Returns the same
transformation matrix as the commands
VIEW(AZ,EL)
A = VIEW
but doesn't change the current VIEW.
A=VIEWMTX(AZ,EL,PHI) returns a 4x4 perspective transformation
matrix used to project 3-D vectors onto the 2-D plot surface.
PHI is the subtended view angle of the normalized plot cube
(in degrees) and controls the amount of perspective distortion:
PHI = 0 degrees is orthographic projection
PHI = 10 degrees is like a telephoto lens
PHI = 25 degrees is like a normal lens
PHI = 60 degrees is like a wide angle lens
A=VIEWMTX(AZ,EL,PHI,XC) returns the perspective transformation
matrix using XC as the target (or look-at) point within
the normalized plot cube. XC=[xc,yc,zc] specifies the
point (xc,yc,zc) in the plot cube. The default value is
the closest point in the plot cube,
XC = 0.5+sqrt(3)/2*[cos(EL)*sin(AZ),-cos(EL)*cos(AZ),sin(EL)].
See also view.
Reference page in Help browser
doc viewmtx
<rotate3d> - Interactively rotate view of 3-D plot.
ROTATE3D Interactively rotate the view of a 3-D plot.
ROTATE3D ON turns on mouse-based 3-D rotation.
ROTATE3D OFF turns if off.
ROTATE3D by itself toggles the state.
ROTATE3D(FIG,...) works on the figure FIG.
ROTATE3D(AXES,...) works on the axis AXES.
H = ROTATE3D(FIG) returns the figure's rotate3d mode object for
customization.
The following properties can be modified using set/get:
ButtonDownFilter <function_handle>
The application can inhibit the zoom operation under circumstances
the programmer defines, depending on what the callback returns.
The input function handle should reference a function with two