/usr/share/doc/octave/octave.html/Axis-Configuration.html is in octave-doc 4.2.2-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- Created by GNU Texinfo 6.5, http://www.gnu.org/software/texinfo/ -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Axis Configuration (GNU Octave)</title>
<meta name="description" content="Axis Configuration (GNU Octave)">
<meta name="keywords" content="Axis Configuration (GNU Octave)">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<link href="index.html#Top" rel="start" title="Top">
<link href="Concept-Index.html#Concept-Index" rel="index" title="Concept Index">
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="Two_002dDimensional-Plots.html#Two_002dDimensional-Plots" rel="up" title="Two-Dimensional Plots">
<link href="Two_002ddimensional-Function-Plotting.html#Two_002ddimensional-Function-Plotting" rel="next" title="Two-dimensional Function Plotting">
<link href="Two_002dDimensional-Plots.html#Two_002dDimensional-Plots" rel="prev" title="Two-Dimensional Plots">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
blockquote.indentedblock {margin-right: 0em}
blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
blockquote.smallquotation {font-size: smaller}
div.display {margin-left: 3.2em}
div.example {margin-left: 3.2em}
div.lisp {margin-left: 3.2em}
div.smalldisplay {margin-left: 3.2em}
div.smallexample {margin-left: 3.2em}
div.smalllisp {margin-left: 3.2em}
kbd {font-style: oblique}
pre.display {font-family: inherit}
pre.format {font-family: inherit}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
pre.smalldisplay {font-family: inherit; font-size: smaller}
pre.smallexample {font-size: smaller}
pre.smallformat {font-family: inherit; font-size: smaller}
pre.smalllisp {font-size: smaller}
span.nolinebreak {white-space: nowrap}
span.roman {font-family: initial; font-weight: normal}
span.sansserif {font-family: sans-serif; font-weight: normal}
ul.no-bullet {list-style: none}
-->
</style>
<link rel="stylesheet" type="text/css" href="octave.css">
</head>
<body lang="en">
<a name="Axis-Configuration"></a>
<div class="header">
<p>
Next: <a href="Two_002ddimensional-Function-Plotting.html#Two_002ddimensional-Function-Plotting" accesskey="n" rel="next">Two-dimensional Function Plotting</a>, Up: <a href="Two_002dDimensional-Plots.html#Two_002dDimensional-Plots" accesskey="u" rel="up">Two-Dimensional Plots</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Concept-Index.html#Concept-Index" title="Index" rel="index">Index</a>]</p>
</div>
<hr>
<a name="Axis-Configuration-1"></a>
<h4 class="subsubsection">15.2.1.1 Axis Configuration</h4>
<p>The axis function may be used to change the axis limits of an existing
plot and various other axis properties, such as the aspect ratio and the
appearance of tic marks.
</p>
<a name="XREFaxis"></a><dl>
<dt><a name="index-axis"></a>: <em></em> <strong>axis</strong> <em>()</em></dt>
<dt><a name="index-axis-1"></a>: <em></em> <strong>axis</strong> <em>([<var>x_lo</var> <var>x_hi</var>])</em></dt>
<dt><a name="index-axis-2"></a>: <em></em> <strong>axis</strong> <em>([<var>x_lo</var> <var>x_hi</var> <var>y_lo</var> <var>y_hi</var>])</em></dt>
<dt><a name="index-axis-3"></a>: <em></em> <strong>axis</strong> <em>([<var>x_lo</var> <var>x_hi</var> <var>y_lo</var> <var>y_hi</var> <var>z_lo</var> <var>z_hi</var>])</em></dt>
<dt><a name="index-axis-4"></a>: <em></em> <strong>axis</strong> <em>([<var>x_lo</var> <var>x_hi</var> <var>y_lo</var> <var>y_hi</var> <var>z_lo</var> <var>z_hi</var> <var>c_lo</var> <var>c_hi</var>])</em></dt>
<dt><a name="index-axis-5"></a>: <em></em> <strong>axis</strong> <em>(<var>option</var>)</em></dt>
<dt><a name="index-axis-6"></a>: <em></em> <strong>axis</strong> <em>(<var>option1</var>, <var>option2</var>, …)</em></dt>
<dt><a name="index-axis-7"></a>: <em></em> <strong>axis</strong> <em>(<var>hax</var>, …)</em></dt>
<dt><a name="index-axis-8"></a>: <em><var>limits</var> =</em> <strong>axis</strong> <em>()</em></dt>
<dd><p>Set axis limits and appearance.
</p>
<p>The argument <var>limits</var> should be a 2-, 4-, 6-, or 8-element vector. The
first and second elements specify the lower and upper limits for the
x-axis. The third and fourth specify the limits for the y-axis, the fifth
and sixth specify the limits for the z-axis, and the seventh and eighth
specify the limits for the color axis. The special values -Inf and Inf may
be used to indicate that the limit should be automatically computed based
on the data in the axes.
</p>
<p>Without any arguments, <code>axis</code> turns autoscaling on.
</p>
<p>With one output argument, <code><var>limits</var> = axis</code> returns the current
axis limits.
</p>
<p>The vector argument specifying limits is optional, and additional string
arguments may be used to specify various axis properties.
</p>
<p>The following options control the aspect ratio of the axes.
</p>
<dl compact="compact">
<dt><code>"square"</code></dt>
<dd><p>Force a square axis aspect ratio.
</p>
</dd>
<dt><code>"equal"</code></dt>
<dd><p>Force x-axis unit distance to equal y-axis (and z-axis) unit distance.
</p>
</dd>
<dt><code>"normal"</code></dt>
<dd><p>Restore default aspect ratio.
</p></dd>
</dl>
<p>The following options control the way axis limits are interpreted.
</p>
<dl compact="compact">
<dt><code>"auto"</code></dt>
<dt><code>"auto[xyz]"</code></dt>
<dd><p>Set the specified axes to have nice limits around the data or all if no
axes are specified.
</p>
</dd>
<dt><code>"manual"</code></dt>
<dd><p>Fix the current axes limits.
</p>
</dd>
<dt><code>"tight"</code></dt>
<dd><p>Fix axes to the limits of the data.
</p>
</dd>
<dt><code>"image"</code></dt>
<dd><p>Equivalent to <code>"tight"</code> and <code>"equal"</code>.
</p></dd>
</dl>
<p>The following options affect the appearance of tick marks.
</p>
<dl compact="compact">
<dt><code>"tic[xyz]"</code></dt>
<dd><p>Turn tick marks on for all axes, or turn them on for the specified axes and
off for the remainder.
</p>
</dd>
<dt><code>"label[xyz]"</code></dt>
<dd><p>Turn tick labels on for all axes, or turn them on for the specified axes
and off for the remainder.
</p>
</dd>
<dt><code>"nolabel"</code></dt>
<dd><p>Turn tick labels off for all axes.
</p></dd>
</dl>
<p>Note: If there are no tick marks for an axes then there can be no labels.
</p>
<p>The following options affect the direction of increasing values on the axes.
</p>
<dl compact="compact">
<dt><code>"xy"</code></dt>
<dd><p>Default y-axis, larger values are near the top.
</p>
</dd>
<dt><code>"ij"</code></dt>
<dd><p>Reverse y-axis, smaller values are near the top.
</p></dd>
</dl>
<p>The following options affects the visibility of the axes.
</p>
<dl compact="compact">
<dt><code>"on"</code></dt>
<dd><p>Make the axes visible.
</p>
</dd>
<dt><code>"off"</code></dt>
<dd><p>Hide the axes.
</p></dd>
</dl>
<p>If the first argument <var>hax</var> is an axes handle, then operate on this
axes rather than the current axes returned by <code>gca</code>.
</p>
<p>Example 1: set X/Y limits and force a square aspect ratio
</p>
<div class="example">
<pre class="example">axis ([1, 2, 3, 4], "square");
</pre></div>
<p>Example 2: enable tick marks on all axes,
enable tick mark labels only on the y-axis
</p>
<div class="example">
<pre class="example">axis ("tic", "labely");
</pre></div>
<p><strong>See also:</strong> <a href="#XREFxlim">xlim</a>, <a href="#XREFylim">ylim</a>, <a href="#XREFzlim">zlim</a>, <a href="#XREFcaxis">caxis</a>, <a href="Aspect-Ratio.html#XREFdaspect">daspect</a>, <a href="Aspect-Ratio.html#XREFpbaspect">pbaspect</a>, <a href="Plot-Annotations.html#XREFbox">box</a>, <a href="Plot-Annotations.html#XREFgrid">grid</a>.
</p></dd></dl>
<p>Similarly the axis limits of the colormap can be changed with the caxis
function.
</p>
<a name="XREFcaxis"></a><dl>
<dt><a name="index-caxis"></a>: <em></em> <strong>caxis</strong> <em>([cmin cmax])</em></dt>
<dt><a name="index-caxis-1"></a>: <em></em> <strong>caxis</strong> <em>("auto")</em></dt>
<dt><a name="index-caxis-2"></a>: <em></em> <strong>caxis</strong> <em>("manual")</em></dt>
<dt><a name="index-caxis-3"></a>: <em></em> <strong>caxis</strong> <em>(<var>hax</var>, …)</em></dt>
<dt><a name="index-caxis-4"></a>: <em><var>limits</var> =</em> <strong>caxis</strong> <em>()</em></dt>
<dd><p>Query or set color axis limits for plots.
</p>
<p>The limits argument should be a 2-element vector specifying the lower and
upper limits to assign to the first and last value in the colormap. Data
values outside this range are clamped to the first and last colormap
entries.
</p>
<p>If the <code>"auto"</code> option is given then automatic colormap limits are
applied. The automatic algorithm sets <var>cmin</var> to the minimum data value
and <var>cmax</var> to the maximum data value. If <code>"manual"</code> is specified
then the <code>"climmode"</code> property is set to <code>"manual"</code> and the
numeric values in the <code>"clim"</code> property are used for limits.
</p>
<p>If the first argument <var>hax</var> is an axes handle, then operate on
this axes rather than the current axes returned by <code>gca</code>.
</p>
<p>Called without arguments the current color axis limits are returned.
</p>
<p>Programming Note: The color axis affects the display of image, patch, and
surface graphics objects, but <strong>only</strong> if the <code>"cdata"</code> property
has indexed data and the <code>"cdatamapping"</code> property is set to
<code>"scaled"</code>. Graphic objects with true color <code>cdata</code>, or
<code>"direct"</code> <code>cdatamapping</code> are not affected.
</p>
<p><strong>See also:</strong> <a href="Representing-Images.html#XREFcolormap">colormap</a>, <a href="#XREFaxis">axis</a>.
</p></dd></dl>
<p>The <code>xlim</code>, <code>ylim</code>, and <code>zlim</code> functions may be used to
get or set individual axis limits. Each has the same form.
</p>
<a name="XREFylim"></a><a name="XREFzlim"></a><a name="index-ylim"></a>
<a name="index-zlim"></a>
<a name="XREFxlim"></a><dl>
<dt><a name="index-xlim"></a>: <em><var>xlimits</var> =</em> <strong>xlim</strong> <em>()</em></dt>
<dt><a name="index-xlim-1"></a>: <em><var>xmode</var> =</em> <strong>xlim</strong> <em>("mode")</em></dt>
<dt><a name="index-xlim-2"></a>: <em></em> <strong>xlim</strong> <em>([<var>x_lo</var> <var>x_hi</var>])</em></dt>
<dt><a name="index-xlim-3"></a>: <em></em> <strong>xlim</strong> <em>("auto")</em></dt>
<dt><a name="index-xlim-4"></a>: <em></em> <strong>xlim</strong> <em>("manual")</em></dt>
<dt><a name="index-xlim-5"></a>: <em></em> <strong>xlim</strong> <em>(<var>hax</var>, …)</em></dt>
<dd><p>Query or set the limits of the x-axis for the current plot.
</p>
<p>Called without arguments <code>xlim</code> returns the x-axis limits of the
current plot.
</p>
<p>With the input query <code>"mode"</code>, return the current x-limit
calculation mode which is either <code>"auto"</code> or <code>"manual"</code>.
</p>
<p>If passed a 2-element vector [<var>x_lo</var> <var>x_hi</var>], the limits of the
x-axis are set to these values and the mode is set to <code>"manual"</code>.
The special values -Inf and Inf can be used to indicate that either
the lower axis limit or upper axis limit should be automatically calculated.
</p>
<p>The current plotting mode can be changed by using either <code>"auto"</code>
or <code>"manual"</code> as the argument.
</p>
<p>If the first argument <var>hax</var> is an axes handle, then operate on
this axes rather than the current axes returned by <code>gca</code>.
</p>
<p>Programming Note: The <code>xlim</code> function operates by modifying the
<code>"xlim"</code> and <code>"xlimmode"</code> properties of an axes object. These
properties can be be directly inspected and altered with
<code>get</code>/<code>set</code>.
</p>
<p><strong>See also:</strong> <a href="#XREFylim">ylim</a>, <a href="#XREFzlim">zlim</a>, <a href="#XREFaxis">axis</a>, <a href="Graphics-Objects.html#XREFset">set</a>, <a href="Graphics-Objects.html#XREFget">get</a>, <a href="Graphics-Objects.html#XREFgca">gca</a>.
</p></dd></dl>
<hr>
<div class="header">
<p>
Next: <a href="Two_002ddimensional-Function-Plotting.html#Two_002ddimensional-Function-Plotting" accesskey="n" rel="next">Two-dimensional Function Plotting</a>, Up: <a href="Two_002dDimensional-Plots.html#Two_002dDimensional-Plots" accesskey="u" rel="up">Two-Dimensional Plots</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Concept-Index.html#Concept-Index" title="Index" rel="index">Index</a>]</p>
</div>
</body>
</html>
|