28.12.2012 Views

Figure Properties - SERC

Figure Properties - SERC

Figure Properties - SERC

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

linkprop<br />

2-1352<br />

% Make axes invisible and title visible<br />

axis(ax,'off')<br />

set(get(ax,'title'),'Visible','on')<br />

Linking an Additional Property<br />

Suppose you want to add the axes PlotBoxAspectRatio to the linked<br />

properties in the previous example. You can do this by modifying the link object<br />

that is stored in the first subplot axes’ application data.<br />

1 First click the first subplot axes to make it the current axes (since its handle<br />

was saved only within the creating function). Then get the link object’s<br />

handle from application data (getappdata).<br />

hlink = getappdata(gca,'graphics_linkprop');<br />

2 Use the addprop method to add a new property to the link object.<br />

addprop(hlink,'PlotBoxAspectRatio')<br />

Since hlink is a reference to the link object (i.e., not a copy), addprop can<br />

change the object that is stored in application data.<br />

See Also getappdata, linkaxes, setappdata

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!