<html lang="en"> <head> <title>Aspect Ratio - GNU Octave</title> <meta http-equiv="Content-Type" content="text/html"> <meta name="description" content="GNU Octave"> <meta name="generator" content="makeinfo 4.13"> <link title="Top" rel="start" href="index.html#Top"> <link rel="up" href="Three_002dDimensional-Plots.html#Three_002dDimensional-Plots" title="Three-Dimensional Plots"> <link rel="next" href="Three_002ddimensional-Function-Plotting.html#Three_002ddimensional-Function-Plotting" title="Three-dimensional Function Plotting"> <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage"> <meta http-equiv="Content-Style-Type" content="text/css"> <style type="text/css"><!-- pre.display { font-family:inherit } pre.format { font-family:inherit } pre.smalldisplay { font-family:inherit; font-size:smaller } pre.smallformat { font-family:inherit; font-size:smaller } pre.smallexample { font-size:smaller } pre.smalllisp { font-size:smaller } span.sc { font-variant:small-caps } span.roman { font-family:serif; font-weight:normal; } span.sansserif { font-family:sans-serif; font-weight:normal; } --></style> </head> <body> <div class="node"> <a name="Aspect-Ratio"></a> <p> Next: <a rel="next" accesskey="n" href="Three_002ddimensional-Function-Plotting.html#Three_002ddimensional-Function-Plotting">Three-dimensional Function Plotting</a>, Up: <a rel="up" accesskey="u" href="Three_002dDimensional-Plots.html#Three_002dDimensional-Plots">Three-Dimensional Plots</a> <hr> </div> <h5 class="subsubsection">15.2.2.1 Aspect Ratio</h5> <p>For three-dimensional plots the aspect ratio can be set for data with <code>daspect</code> and for the plot box with <code>pbaspect</code>. See <a href="Axis-Configuration.html#Axis-Configuration">Axis Configuration</a> for controlling the x-, y-, and z-limits for plotting. <!-- daspect scripts/plot/daspect.m --> <p><a name="doc_002ddaspect"></a> <div class="defun"> — Function File: <b>daspect</b> (<var>data_aspect_ratio</var>)<var><a name="index-daspect-1312"></a></var><br> <blockquote><p>Set the data aspect ratio of the current axes. The aspect ratio is a normalized 3-element vector representing the span of the x, y, and z-axes limits. — Function File: <var>data_aspect_ratio</var> = <b>daspect</b> ( )<var><a name="index-daspect-1313"></a></var><br> <blockquote><p>Return the data aspect ratio of the current axes. — Function File: <b>daspect</b> (<var>mode</var>)<var><a name="index-daspect-1314"></a></var><br> <blockquote><p>Set the data aspect ratio mode of the current axes. — Function File: <var>data_aspect_ratio_mode</var> = <b>daspect</b> (<var>"mode"</var>)<var><a name="index-daspect-1315"></a></var><br> <blockquote><p>Return the data aspect ratio mode of the current axes. — Function File: <b>daspect</b> (<var>hax, <small class="dots">...</small></var>)<var><a name="index-daspect-1316"></a></var><br> <blockquote><p>Use the axes, with handle <var>hax</var>, instead of the current axes. <!-- Texinfo @sp should work but in practice produces ugly results for HTML. --> <!-- A simple blank line produces the correct behavior. --> <!-- @sp 1 --> <p class="noindent"><strong>See also:</strong> <a href="doc_002daxis.html#doc_002daxis">axis</a>, <a href="doc_002dpbaspect.html#doc_002dpbaspect">pbaspect</a>, <a href="doc_002dxlim.html#doc_002dxlim">xlim</a>, <a href="doc_002dylim.html#doc_002dylim">ylim</a>, <a href="doc_002dzlim.html#doc_002dzlim">zlim</a>. </p></blockquote></div> <!-- pbaspect scripts/plot/pbaspect.m --> <p><a name="doc_002dpbaspect"></a> <div class="defun"> — Function File: <b>pbaspect</b> (<var>plot_box_aspect_ratio</var>)<var><a name="index-pbaspect-1317"></a></var><br> <blockquote><p>Set the plot box aspect ratio of the current axes. The aspect ratio is a normalized 3-element vector representing the rendered lengths of the x, y, and z-axes. — Function File: <var>plot_box_aspect_ratio</var> = <b>pbaspect</b> ( )<var><a name="index-pbaspect-1318"></a></var><br> <blockquote><p>Return the plot box aspect ratio of the current axes. — Function File: <b>pbaspect</b> (<var>mode</var>)<var><a name="index-pbaspect-1319"></a></var><br> <blockquote><p>Set the plot box aspect ratio mode of the current axes. — Function File: <var>plot_box_aspect_ratio_mode</var> = <b>pbaspect</b> (<var>"mode"</var>)<var><a name="index-pbaspect-1320"></a></var><br> <blockquote><p>Return the plot box aspect ratio mode of the current axes. — Function File: <b>pbaspect</b> (<var>hax, <small class="dots">...</small></var>)<var><a name="index-pbaspect-1321"></a></var><br> <blockquote><p>Use the axes, with handle <var>hax</var>, instead of the current axes. <!-- Texinfo @sp should work but in practice produces ugly results for HTML. --> <!-- A simple blank line produces the correct behavior. --> <!-- @sp 1 --> <p class="noindent"><strong>See also:</strong> <a href="doc_002daxis.html#doc_002daxis">axis</a>, <a href="doc_002ddaspect.html#doc_002ddaspect">daspect</a>, <a href="doc_002dxlim.html#doc_002dxlim">xlim</a>, <a href="doc_002dylim.html#doc_002dylim">ylim</a>, <a href="doc_002dzlim.html#doc_002dzlim">zlim</a>. </p></blockquote></div> </body></html>