
Handle Graphics
set(h,'Color','red')
You can also specify properties when you call the plotting function:
h = plot(x,y,'Color', 'red');
When y ou query the lineserie s properties,
get(h,'LineWid
th')
MATLAB returns t
he answer:
ans =
0.5000
Use the handle to see what properties a particular object contains:
get(h)
Graphics Objects
Graphics objects are the basic elements used to display graphs and user
interface components. These objects are organized into a hierarchy, as shown
by the following diagram.
Key Graphics Objects
When you call a function to create a graph, MATLAB creates a hierarchy of
graphics objects. For example, calling the
plot function creates the following
graphics objects:
• Lineseries plot objects — Represent the data passed to the
plot function.
3-75
Commenti su questo manuale