Text-only Table of Contents (frame/ no frame)
(29) Graphics Objects Previous Top Next

Graphics Objects



           Hierarchy of Matlab Graphics Objects (used to display matlab graphics)

Diagram of Graphics Object Hierarchy 

Commands for Working With Graphics Objects:

gca - return the handle of the current axes
gcf - return the handle of the current figure
gco - return the handle of the current object
get - query the values of an object's properties
set - set the values of an object's properties
findall - find all graphics objects
findobj - find the handles of objects having specified property values

Try :
x=0:.1:10;
y=sin(x);
plot(x,y);
axes_props=get(gca);
set(gca,'TickLength',[.04 .04]);
a=get(gca,'YLim');
set (gca,'YLim', [-1 2]);
b=findobj(gcf,'Color','blue');
get(b(1))






















Previous Top Next


Set-Object-Properties.src  last modified Oct 17, 2007 Introduction Table of Contents
(frame/no frame)
Printable
(single file)
© Dartmouth College