12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

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.

pbaspectThe plot box aspect ratio has changed to accommodate the specified data aspectratio. Now suppose you want the plot box aspect ratio to be [1 1 1] as well.pbaspect([1 1 1])21.510.50−0.5−1−1.5−22120−1−2−2−101Notice how <strong>MATLAB</strong> changed the axes limits because of the constraintsintroduced by specifying both the plot box and data aspect ratios.You can also use pbaspect to disable stretch-to-fill. For example, displayingtwo subplots in one figure can give surface plots a squashed appearance.Disabling stretch-to-fill.upper_plot = subplot(211);surf(x,y,z)lower_plot = subplot(212);surf(x,y,z)pbaspect(upper_plot,'manual')2-344

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

Saved successfully!

Ooh no, something went wrong!