28.12.2012 Views

Figure Properties - SERC

Figure Properties - SERC

Figure Properties - SERC

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

newplot<br />

2newplot<br />

Purpose Determine where to draw graphics objects<br />

Syntax newplot<br />

h = newplot<br />

h = newplot(hsave)<br />

Description newplot prepares a figure and axes for subsequent graphics commands.<br />

2-1522<br />

h = newplot prepares a figure and axes for subsequent graphics commands<br />

and returns a handle to the current axes.<br />

h = newplot(hsave) prepares and returns an axes, but does not delete any<br />

objects whose handles appear in hsave. If hsave is specified, the figure and axes<br />

containing hsave are prepared for plotting instead of the current axes of the<br />

current figure. If hsave is empty, newplot behaves as if it were called without<br />

any inputs.<br />

Remarks Use newplot at the beginning of high-level graphics M-files to determine which<br />

figure and axes to target for graphics output. Calling newplot can change the<br />

current figure and current axes. Basically, there are three options when you<br />

are drawing graphics in existing figures and axes:<br />

Add the new graphics without changing any properties or deleting any<br />

objects.<br />

Delete all existing objects whose handles are not hidden before drawing the<br />

new objects.<br />

Delete all existing objects regardless of whether or not their handles are<br />

hidden, and reset most properties to their defaults before drawing the new<br />

objects (refer to the following table for specific information).<br />

The figure and axes NextPlot properties determine how newplot behaves. The<br />

following two tables describe this behavior with various property values.

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

Saved successfully!

Ooh no, something went wrong!