Mercurial > hg > octave-lyh
annotate doc/interpreter/plot.txi @ 7984:bbaa5d7d0143
Some documentation updates
author | David Bateman <dbateman@free.fr> |
---|---|
date | Mon, 28 Jul 2008 15:47:40 +0200 |
parents | 90413830b690 |
children | 23c248d415b5 |
rev | line source |
---|---|
7018 | 1 @c Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, |
2 @c 2006, 2007 John W. Eaton | |
3 @c | |
4 @c This file is part of Octave. | |
5 @c | |
6 @c Octave is free software; you can redistribute it and/or modify it | |
7 @c under the terms of the GNU General Public License as published by the | |
8 @c Free Software Foundation; either version 3 of the License, or (at | |
9 @c your option) any later version. | |
10 @c | |
11 @c Octave is distributed in the hope that it will be useful, but WITHOUT | |
12 @c ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
13 @c FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
14 @c for more details. | |
15 @c | |
16 @c You should have received a copy of the GNU General Public License | |
17 @c along with Octave; see the file COPYING. If not, see | |
18 @c <http://www.gnu.org/licenses/>. | |
3294 | 19 |
4167 | 20 @node Plotting |
3294 | 21 @chapter Plotting |
6888 | 22 @cindex plotting |
23 @cindex graphics | |
3294 | 24 |
25 @menu | |
6888 | 26 * Plotting Basics:: |
27 * Advanced Plotting:: | |
28 @end menu | |
29 | |
30 @node Plotting Basics | |
31 @section Plotting Basics | |
32 | |
33 Octave makes it easy to create many different types of two- and | |
34 three-dimensional plots using a few high-level functions. | |
35 | |
36 If you need finer control over graphics, see @ref{Advanced Plotting}. | |
37 | |
38 @menu | |
39 * Two-Dimensional Plots:: | |
3294 | 40 * Three-Dimensional Plotting:: |
41 * Plot Annotations:: | |
42 * Multiple Plots on One Page:: | |
3428 | 43 * Multiple Plot Windows:: |
6888 | 44 * Printing Plots:: |
7984
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
45 * Interacting with plots:: |
6888 | 46 * Test Plotting Functions:: |
3294 | 47 @end menu |
48 | |
6888 | 49 @node Two-Dimensional Plots |
50 @subsection Two-Dimensional Plots | |
51 | |
52 The @code{plot} function allows you to create simple x-y plots with | |
53 linear axes. For example, | |
3294 | 54 |
6888 | 55 @example |
56 @group | |
57 x = -10:0.1:10; | |
58 plot (x, sin (x)); | |
59 @end group | |
60 @end example | |
61 | |
62 @noindent | |
6899 | 63 displays a sine wave shown in @ref{fig:plot}. On most systems, this |
6888 | 64 command will open a separate plot window to display the graph. |
5134 | 65 |
6888 | 66 @float Figure,fig:plot |
67 @image{plot,8cm} | |
68 @caption{Simple Two-Dimensional Plot.} | |
69 @end float | |
70 | |
5134 | 71 @DOCSTRING(plot) |
72 | |
6888 | 73 The functions @code{semilogx}, @code{semilogy}, and @code{loglog} are |
74 similar to the @code{plot} function, but produce plots in which one or | |
75 both of the axes use log scales. | |
76 | |
77 @DOCSTRING(semilogx) | |
6502 | 78 |
6888 | 79 @DOCSTRING(semilogy) |
6502 | 80 |
6888 | 81 @DOCSTRING(loglog) |
82 | |
83 The functions @code{bar}, @code{barh}, @code{stairs}, and @code{stem} | |
84 are useful for displaying discrete data. For example, | |
5134 | 85 |
6888 | 86 @example |
87 @group | |
88 hist (randn (10000, 1), 30); | |
89 @end group | |
90 @end example | |
5134 | 91 |
6888 | 92 @noindent |
93 produces the histogram of 10,000 normally distributed random numbers | |
6899 | 94 shown in @ref{fig:hist}. |
5134 | 95 |
6888 | 96 @float Figure,fig:hist |
97 @image{hist,8cm} | |
98 @caption{Histogram.} | |
99 @end float | |
5134 | 100 |
101 @DOCSTRING(bar) | |
102 | |
6877 | 103 @DOCSTRING(barh) |
104 | |
6888 | 105 @DOCSTRING(hist) |
106 | |
107 @DOCSTRING(stairs) | |
108 | |
109 @DOCSTRING(stem) | |
110 | |
7981 | 111 The @code{contour}, @code{contourf} and @code{contourc} functions |
112 produce two-dimensional contour plots from three dimensional data. | |
6888 | 113 |
5134 | 114 @DOCSTRING(contour) |
115 | |
7981 | 116 @DOCSTRING(contourf) |
117 | |
6502 | 118 @DOCSTRING(contourc) |
119 | |
6888 | 120 The @code{errorbar}, @code{semilogxerr}, @code{semilogyerr}, and |
121 @code{loglogerr} functions produces plots with error bar markers. For | |
122 example, | |
6877 | 123 |
6888 | 124 @example |
125 x = 0:0.1:10; | |
126 y = sin (x); | |
127 yp = 0.1 .* randn (size (x)); | |
128 ym = -0.1 .* randn (size (x)); | |
129 errorbar (x, sin (x), ym, yp); | |
130 @end example | |
5134 | 131 |
6888 | 132 @noindent |
6899 | 133 produces the figure shown in @ref{fig:errorbar}. |
6502 | 134 |
6888 | 135 @float Figure,fig:errorbar |
136 @image{errorbar,8cm} | |
137 @caption{Errorbar plot.} | |
138 @end float | |
5134 | 139 |
140 @DOCSTRING(errorbar) | |
141 | |
142 @DOCSTRING(semilogxerr) | |
143 | |
144 @DOCSTRING(semilogyerr) | |
145 | |
6888 | 146 @DOCSTRING(loglogerr) |
147 | |
148 Finally, the @code{polar} function allows you to easily plot data in | |
7001 | 149 polar coordinates. However, the display coordinates remain rectangular |
6888 | 150 and linear. For example, |
151 | |
152 @example | |
153 polar (0:0.1:10*pi, 0:0.1:10*pi); | |
154 @end example | |
155 | |
156 @noindent | |
6899 | 157 produces the spiral plot shown in @ref{fig:polar}. |
6888 | 158 |
159 @float Figure,fig:polar | |
160 @image{polar,8cm} | |
161 @caption{Polar plot.} | |
162 @end float | |
163 | |
164 @DOCSTRING(polar) | |
165 | |
7120 | 166 @DOCSTRING(pie) |
167 | |
168 @DOCSTRING(quiver) | |
169 | |
170 @DOCSTRING(pcolor) | |
171 | |
7153 | 172 @DOCSTRING(area) |
173 | |
6888 | 174 The axis function may be used to change the axis limits of an existing |
175 plot. | |
176 | |
177 @DOCSTRING(axis) | |
178 | |
7189 | 179 Similarly the axis limits of the colormap can be changed with the caxis |
180 function. | |
181 | |
182 @DOCSTRING(caxis) | |
183 | |
7984
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
184 @node Two-dimensional Function Plotting |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
185 @subsubsection Two-dimensional Function Plotting |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
186 |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
187 Octave can plot a function from a function handle inline function or |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
188 string defining the function without the user needing to explicitly |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
189 create the data to be plotted. The function @code{fplot} also generates |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
190 two-dimensional plots with linear axes using a function name and limits |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
191 for the range of the x-coordinate instead of the x and y data. For |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
192 example, |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
193 |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
194 @example |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
195 @group |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
196 fplot (@@sin, [-10, 10], 201); |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
197 @end group |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
198 @end example |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
199 |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
200 @noindent |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
201 produces a plot that is equivalent to the one above, but also includes a |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
202 legend displaying the name of the plotted function. |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
203 |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
204 @DOCSTRING(fplot) |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
205 |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
206 Other functions that can create two-dimensional plots directly from a |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
207 function include @code{ezcontour}, @code{ezcontourf} and @code{ezpolar}. |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
208 |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
209 @DOCSTRING(ezcontour) |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
210 |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
211 @DOCSTRING(ezcontourf) |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
212 |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
213 @DOCSTRING(ezpolar) |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
214 |
5134 | 215 @node Three-Dimensional Plotting |
6888 | 216 @subsection Three-Dimensional Plotting |
217 | |
218 The function @code{mesh} produces mesh surface plots. For example, | |
219 | |
220 @example | |
221 @group | |
222 tx = ty = linspace (-8, 8, 41)'; | |
223 [xx, yy] = meshgrid (tx, ty); | |
224 r = sqrt (xx .^ 2 + yy .^ 2) + eps; | |
225 tz = sin (r) ./ r; | |
226 mesh (tx, ty, tz); | |
227 @end group | |
228 @end example | |
229 | |
230 @noindent | |
6899 | 231 produces the familiar ``sombrero'' plot shown in @ref{fig:mesh}. Note |
6888 | 232 the use of the function @code{meshgrid} to create matrices of X and Y |
233 coordinates to use for plotting the Z data. The @code{ndgrid} function | |
234 is similar to @code{meshgrid}, but works for N-dimensional matrices. | |
235 | |
236 @float Figure,fig:mesh | |
237 @image{mesh,8cm} | |
238 @caption{Mesh plot.} | |
239 @end float | |
5134 | 240 |
6888 | 241 The @code{meshc} function is similar to @code{mesh}, but also produces a |
242 plot of contours for the surface. | |
243 | |
244 The @code{plot3} function displays arbitrary three-dimensional data, | |
245 without requiring it to form a surface. For example | |
246 | |
247 @example | |
248 @group | |
249 t = 0:0.1:10*pi; | |
250 r = linspace (0, 1, numel (t)); | |
251 z = linspace (0, 1, numel (t)); | |
252 plot3 (r.*sin(t), r.*cos(t), z); | |
253 @end group | |
254 @end example | |
255 | |
256 @noindent | |
6899 | 257 displays the spiral in three dimensions shown in @ref{fig:plot3}. |
6888 | 258 |
259 @float Figure,fig:plot3 | |
260 @image{plot3,8cm} | |
261 @caption{Three dimensional spiral.} | |
262 @end float | |
263 | |
264 Finally, the @code{view} function changes the viewpoint for | |
265 three-dimensional plots. | |
5134 | 266 |
267 @DOCSTRING(mesh) | |
268 | |
6788 | 269 @DOCSTRING(meshc) |
270 | |
7153 | 271 @DOCSTRING(hidden) |
272 | |
7120 | 273 @DOCSTRING(surf) |
274 | |
275 @DOCSTRING(surfc) | |
276 | |
5134 | 277 @DOCSTRING(meshgrid) |
278 | |
6550 | 279 @DOCSTRING(ndgrid) |
280 | |
6888 | 281 @DOCSTRING(plot3) |
282 | |
6502 | 283 @DOCSTRING(view) |
284 | |
7120 | 285 @DOCSTRING(shading) |
286 | |
7984
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
287 @node Two-dimensional Function Plotting |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
288 @subsubsection Two-dimensional Function Plotting |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
289 |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
290 @DOCSTRING(ezplot3) |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
291 |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
292 @DOCSTRING(ezmesh) |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
293 |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
294 @DOCSTRING(ezmeshc) |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
295 |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
296 @DOCSTRING(ezsurf) |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
297 |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
298 @DOCSTRING(ezsurfc) |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
299 |
6888 | 300 @node Plot Annotations |
301 @subsection Plot Annotations | |
6502 | 302 |
6888 | 303 You can add titles, axis labels, legends, and arbitrary text to an |
304 existing plot. For example, | |
6877 | 305 |
6888 | 306 @example |
307 @group | |
308 x = -10:0.1:10; | |
309 plot (x, sin (x)); | |
310 title ("sin(x) for x = -10:0.1:10"); | |
311 xlabel ("x"); | |
312 ylabel ("sin (x)"); | |
313 text (pi, 0.7, "arbitrary text"); | |
314 legend ("sin (x)"); | |
315 @end group | |
316 @end example | |
6502 | 317 |
6888 | 318 The functions @code{grid} and @code{box} may also be used to add grid |
319 and border lines to the plot. By default, the grid is off and the | |
320 border lines are on. | |
5134 | 321 |
322 @DOCSTRING(title) | |
323 | |
6502 | 324 @DOCSTRING(legend) |
325 | |
326 @DOCSTRING(text) | |
327 | |
5134 | 328 @DOCSTRING(xlabel) |
329 | |
6502 | 330 @DOCSTRING(box) |
331 | |
332 @DOCSTRING(grid) | |
333 | |
5134 | 334 @node Multiple Plots on One Page |
6888 | 335 @subsection Multiple Plots on One Page |
336 | |
337 Octave can display more than one plot in a single figure. The simplest | |
338 way to do this is to use the @code{subplot} function to divide the plot | |
339 area into a series of subplot windows that are indexed by an integer. | |
340 For example, | |
341 | |
342 @example | |
343 @group | |
344 subplot (2, 1, 1) | |
345 fplot (@@sin, [-10, 10]); | |
346 subplot (2, 1, 2) | |
347 fplot (@@cos, [-10, 10]); | |
348 @end group | |
349 @end example | |
350 | |
351 @noindent | |
352 creates a figure with two separate axes, one displaying a sine wave and | |
353 the other a cosine wave. The first call to subplot divides the figure | |
354 into two plotting areas (two rows and one column) and makes the first plot | |
355 area active. The grid of plot areas created by @code{subplot} is | |
356 numbered in column-major order (top to bottom, left to right). | |
5134 | 357 |
358 @DOCSTRING(subplot) | |
359 | |
360 @node Multiple Plot Windows | |
6888 | 361 @subsection Multiple Plot Windows |
362 | |
363 You can open multiple plot windows using the @code{figure} function. | |
364 For example | |
365 | |
366 @example | |
367 figure (1); | |
368 fplot (@@sin, [-10, 10]); | |
369 figure (2); | |
370 fplot (@@cos, [-10, 10]); | |
371 @end example | |
372 | |
373 @noindent | |
374 creates two figures, with the first displaying a sine wave and | |
375 the second a cosine wave. Figure numbers must be positive integers. | |
5134 | 376 |
377 @DOCSTRING(figure) | |
378 | |
6502 | 379 @node Printing Plots |
6888 | 380 @subsection Printing Plots |
381 | |
382 The @code{print} command allows you to save plots in a variety of | |
383 formats. For example, | |
384 | |
385 @example | |
386 print -deps foo.eps | |
387 @end example | |
388 | |
389 @noindent | |
390 writes the current figure to an encapsulated PostScript file called | |
391 @file{foo.eps}. | |
6502 | 392 |
393 @DOCSTRING(print) | |
394 | |
395 @DOCSTRING(orient) | |
5134 | 396 |
7984
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
397 @node Interacting with plots |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
398 @subsection Interacting with plots |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
399 |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
400 The user can select points on a plot with the @code{ginput} function or |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
401 selction the position at which to place text on the plot with the |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
402 @code{gtext} function using the mouse. |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
403 |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
404 @DOCSTRING(ginput) |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
405 |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
406 @DOCSTRING(waitforbuttonpress) |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
407 |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
408 @DOCSTRING(gtext) |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
409 |
6788 | 410 @node Test Plotting Functions |
6888 | 411 @subsection Test Plotting Functions |
412 | |
413 The functions @code{sombrero} and @code{peaks} provide a way to check | |
414 that plotting is working. Typing either @code{sombrero} or @code{peaks} | |
415 at the Octave prompt should display a three dimensional plot. | |
6788 | 416 |
6877 | 417 @DOCSTRING(sombrero) |
418 | |
6788 | 419 @DOCSTRING(peaks) |
420 | |
6888 | 421 @node Advanced Plotting |
422 @section Advanced Plotting | |
423 | |
424 @menu | |
425 * Graphics Objects:: | |
426 * Graphics Object Properties:: | |
6891 | 427 * Managing Default Properties:: |
6889 | 428 * Colors:: |
429 * Line Styles:: | |
430 * Marker Styles:: | |
6888 | 431 * Interaction with gnuplot:: |
432 @end menu | |
433 | |
434 @node Graphics Objects | |
435 @subsection Graphics Objects | |
436 | |
437 Plots in Octave are constructed from the following @dfn{graphics | |
438 objects}. Each graphics object has a set of properties that define its | |
439 appearance and may also contain links to other graphics objects. | |
440 Graphics objects are only referenced by a numeric index, or @dfn{handle}. | |
441 | |
442 @table @asis | |
443 @item root figure | |
444 The parent of all figure objects. The index for the root figure is | |
445 defined to be 0. | |
446 | |
447 @item figure | |
448 A figure window. | |
449 | |
450 @item axes | |
451 An set of axes. This object is a child of a figure object and may be a | |
452 parent of line, text, image, patch, or surface objects. | |
453 | |
454 @item line | |
455 A line in two or three dimensions. | |
456 | |
457 @item text | |
458 Text annotations. | |
459 | |
460 @item image | |
461 A bitmap image. | |
462 | |
463 @item patch | |
464 A filled polygon, currently limited to two dimensions. | |
465 | |
466 @item surface | |
467 A three-dimensional surface. | |
468 @end table | |
469 | |
470 To determine whether an object is a graphics object index or a figure | |
471 index, use the functions @code{ishandle} and @code{isfigure}. | |
472 | |
473 @DOCSTRING(ishandle) | |
474 | |
475 @DOCSTRING(isfigure) | |
476 | |
477 The function @code{gcf} returns an index to the current figure object, | |
478 or creates one if none exists. Similarly, @code{gca} returns the | |
479 current axes object, or creates one (and its parent figure object) if | |
480 none exists. | |
481 | |
482 @DOCSTRING(gcf) | |
483 | |
484 @DOCSTRING(gca) | |
485 | |
486 The @code{get} and @code{set} functions may be used to examine and set | |
487 properties for graphics objects. For example, | |
488 | |
489 @example | |
490 @group | |
491 get (0) | |
492 @result{} ans = | |
493 @{ | |
494 type = root figure | |
495 currentfigure = [](0x0) | |
496 children = [](0x0) | |
497 visible = on | |
498 @} | |
499 @end group | |
500 @end example | |
501 | |
502 @noindent | |
503 returns a structure containing all the properties of the root figure. | |
504 As with all functions in Octave, the structure is returned by value, so | |
505 modifying it will not modify the internal root figure plot object. To | |
506 do that, you must use the @code{set} function. Also, note that in this | |
507 case, the @code{currentfigure} property is empty, which indicates that | |
508 there is no current figure window. | |
509 | |
510 The @code{get} function may also be used to find the value of a single | |
511 property. For example, | |
512 | |
513 @example | |
514 @group | |
515 get (gca (), "xlim") | |
516 @result{} [ 0 1 ] | |
517 @end group | |
518 @end example | |
519 | |
520 @noindent | |
521 returns the range of the x-axis for the current axes object in the | |
522 current figure. | |
523 | |
524 To set graphics object properties, use the set function. For example, | |
525 | |
526 @example | |
527 set (gca (), "xlim", [-10, 10]); | |
528 @end example | |
529 | |
530 @noindent | |
531 sets the range of the x-axis for the current axes object in the current | |
532 figure to @samp{[-10, 10]}. Additionally, calling set with a graphics | |
533 object index as the only argument returns a structure containing the | |
534 default values for all the properties for the given object type. For | |
535 example, | |
536 | |
537 @example | |
538 set (gca ()) | |
539 @end example | |
540 | |
541 @noindent | |
542 returns a structure containing the default property values for axes | |
543 objects. | |
544 | |
545 @DOCSTRING(get) | |
546 | |
547 @DOCSTRING(set) | |
548 | |
549 @DOCSTRING(ancestor) | |
550 | |
7984
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
551 @DOCSTRING(allchild) |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
552 |
6888 | 553 You can create axes, line, and patch objects directly using the |
554 @code{axes}, @code{line}, and @code{patch} functions. These objects | |
555 become children of the current axes object. | |
556 | |
557 @DOCSTRING(axes) | |
558 | |
559 @DOCSTRING(line) | |
560 | |
561 @DOCSTRING(patch) | |
562 | |
7120 | 563 @DOCSTRING(surface) |
564 | |
6888 | 565 By default, Octave refreshes the plot window when a prompt is printed, |
566 or when waiting for input. To force an update at other times, call the | |
567 @code{drawnow} function. | |
568 | |
569 @DOCSTRING(drawnow) | |
570 | |
571 Normally, high-level plot functions like @code{plot} or @code{mesh} call | |
572 @code{newplot} to initialize the state of the current axes so that the | |
573 next plot is drawn in a blank window with default property settings. To | |
574 have two plots superimposed over one another, call the @code{hold} | |
575 function. For example, | |
576 | |
577 @example | |
578 @group | |
579 hold ("on"); | |
580 x = -10:0.1:10; | |
581 plot (x, sin (x)); | |
582 plot (x, cos (x)); | |
583 hold ("off"); | |
584 @end group | |
585 @end example | |
586 | |
587 @noindent | |
588 displays sine and cosine waves on the same axes. If the hold state is | |
589 off, consecutive plotting commands like this will only display the last | |
590 plot. | |
591 | |
592 @DOCSTRING(newplot) | |
593 | |
594 @DOCSTRING(hold) | |
595 | |
596 @DOCSTRING(ishold) | |
597 | |
598 To clear the current figure, call the @code{clf} function. To bring it | |
599 to the top of the window stack, call the @code{shg} function. To delete | |
600 a graphics object, call @code{delete} on its index. To close the | |
601 figure window, call the @code{close} function. | |
602 | |
603 @DOCSTRING(clf) | |
604 | |
605 @DOCSTRING(shg) | |
606 | |
607 @DOCSTRING(delete) | |
608 | |
609 @DOCSTRING(close) | |
610 | |
611 @DOCSTRING(closereq) | |
612 | |
613 @node Graphics Object Properties | |
614 @subsection Graphics Object Properties | |
615 @cindex graphics object properties | |
616 | |
617 @menu | |
618 * Root Figure Properties:: | |
6889 | 619 * Figure Properties:: |
6888 | 620 * Axes Properties:: |
621 * Line Properties:: | |
622 * Text Properties:: | |
623 * Image Properties:: | |
624 * Patch Properties:: | |
625 * Surface Properties:: | |
7984
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
626 * Seacrhing Properties:: |
6888 | 627 @end menu |
628 | |
629 @node Root Figure Properties | |
630 @subsubsection Root Figure Properties | |
631 | |
632 @table @code | |
633 @item currentfigure | |
6889 | 634 Index to graphics object for the current figure. |
635 | |
636 @c FIXME -- does this work? | |
637 @c @item visible | |
638 @c Either @code{"on"} or @code{"off"} to toggle display of figures. | |
6888 | 639 @end table |
640 | |
6889 | 641 @node Figure Properties |
642 @subsubsection Figure Properties | |
6888 | 643 |
644 @table @code | |
645 @item nextplot | |
6889 | 646 May be one of |
647 @table @code | |
648 @item "new" | |
649 @item "add" | |
650 @item "replace" | |
651 @item "replacechildren" | |
652 @end table | |
653 | |
6888 | 654 @item closerequestfcn |
6889 | 655 Handle of function to call when a figure is closed. |
656 | |
6888 | 657 @item currentaxes |
6889 | 658 Index to graphics object of current axes. |
659 | |
6888 | 660 @item colormap |
6889 | 661 An N-by-3 matrix containing the color map for the current axes. |
662 | |
6888 | 663 @item visible |
6889 | 664 Either @code{"on"} or @code{"off"} to toggle display of the figure. |
665 | |
6888 | 666 @item paperorientation |
6889 | 667 Indicates the orientation for printing. Either @code{"landscape"} or |
668 @code{"portrait"}. | |
6888 | 669 @end table |
670 | |
671 @node Axes Properties | |
672 @subsubsection Axes Properties | |
673 | |
674 @table @code | |
675 @item position | |
6889 | 676 A four-element vector specifying the coordinates of the lower left |
677 corner and width and height of the plot, in normalized units. For | |
678 example, @code{[0.2, 0.3, 0.4, 0.5]} sets the lower left corner of the | |
7001 | 679 axes at @math{(0.2, 0.3)} and the width and height to be 0.4 and 0.5 |
6889 | 680 respectively. |
681 | |
6888 | 682 @item title |
6889 | 683 Index of text object for the axes title. |
684 | |
6888 | 685 @item box |
6889 | 686 Either @code{"on"} or @code{"off"} to toggle display of the box around |
687 the axes. | |
688 | |
6888 | 689 @item key |
6889 | 690 Either @code{"on"} or @code{"off"} to toggle display of the legend. |
691 Note that this property is not compatible with @sc{Matlab} and may be | |
692 removed in a future version of Octave. | |
693 | |
6888 | 694 @item keybox |
6889 | 695 Either @code{"on"} or @code{"off"} to toggle display of a box around the |
696 legend. Note that this property is not compatible with @sc{Matlab} and | |
697 may be removed in a future version of Octave. | |
698 | |
6888 | 699 @item keypos |
6889 | 700 An integer from 1 to 4 specifying the position of the legend. 1 |
701 indicates upper right corner, 2 indicates upper left, 3 indicates lower | |
702 left, and 4 indicates lower right. Note that this property is not | |
703 compatible with @sc{Matlab} and may be removed in a future version of | |
704 Octave. | |
705 | |
6888 | 706 @item dataaspectratio |
6889 | 707 A two-element vector specifying the relative height and width of the |
708 data displayed in the axes. Setting @code{dataaspectratio} to @samp{1, | |
709 2]} causes the length of one unit as displayed on the y axis to be the | |
710 same as the length of 2 units on the x axis. Setting | |
711 @code{dataaspectratio} also forces the @code{dataaspectratiomode} | |
712 property to be set to @code{"manual"}. | |
713 | |
6888 | 714 @item dataaspectratiomode |
6889 | 715 Either @code{"manual"} or @code{"auto"}. |
716 | |
6888 | 717 @item xlim |
718 @itemx ylim | |
719 @itemx zlim | |
720 @itemx clim | |
6889 | 721 Two-element vectors defining the limits for the x, y, and z axes and the |
722 Setting one of these properties also forces the corresponding mode | |
723 property to be set to @code{"manual"}. | |
724 | |
6888 | 725 @item xlimmode |
726 @itemx ylimmode | |
727 @itemx zlimmode | |
728 @itemx climmode | |
6889 | 729 Either @code{"manual"} or @code{"auto"}. |
730 | |
6888 | 731 @item xlabel |
732 @itemx ylabel | |
733 @itemx zlabel | |
6889 | 734 Indices to text objects for the axes labels. |
735 | |
6888 | 736 @item xgrid |
737 @itemx ygrid | |
738 @itemx zgrid | |
6889 | 739 Either @code{"on"} or @code{"off"} to toggle display of grid lines. |
740 | |
6888 | 741 @item xminorgrid |
742 @itemx yminorgrid | |
743 @itemx zminorgrid | |
6889 | 744 Either @code{"on"} or @code{"off"} to toggle display of minor grid lines. |
745 | |
6888 | 746 @item xtick |
747 @itemx ytick | |
748 @itemx ztick | |
6889 | 749 Setting one of these properties also forces the corresponding mode |
750 property to be set to @code{"manual"}. | |
751 | |
6888 | 752 @item xtickmode |
753 @itemx ytickmode | |
754 @itemx ztickmode | |
6889 | 755 Either @code{"manual"} or @code{"auto"}. |
756 | |
6888 | 757 @item xticklabel |
758 @itemx yticklabel | |
759 @itemx zticklabel | |
6889 | 760 Setting one of these properties also forces the corresponding mode |
761 property to be set to @code{"manual"}. | |
762 | |
6888 | 763 @item xticklabelmode |
764 @itemx yticklabelmode | |
765 @itemx zticklabelmode | |
6889 | 766 Either @code{"manual"} or @code{"auto"}. |
767 | |
6888 | 768 @item xscale |
769 @itemx yscale | |
770 @itemx zscale | |
6889 | 771 Either @code{"linear"} or @code{"log"}. |
772 | |
6888 | 773 @item xdir |
774 @itemx ydir | |
775 @itemx zdir | |
6889 | 776 Either @code{"forward"} or @code{"reverse"}. |
777 | |
6888 | 778 @item xaxislocation |
779 @itemx yaxislocation | |
6889 | 780 Either @code{"top"} or @code{"bottom"} for the x axis and @code{"left"} |
781 or @code{"right"} for the y axis. | |
782 | |
6888 | 783 @item view |
6889 | 784 A three element vector specifying the view point for three-dimensional plots. |
785 | |
6888 | 786 @item visible |
6889 | 787 Either @code{"on"} or @code{"off"} to toggle display of the axes. |
788 | |
6888 | 789 @item nextplot |
6889 | 790 May be one of |
791 @table @code | |
792 @item "new" | |
793 @item "add" | |
794 @item "replace" | |
795 @item "replacechildren" | |
796 @end table | |
797 | |
6888 | 798 @item outerposition |
6889 | 799 A four-element vector specifying the coordinates of the lower left |
7980
b224a9a9ccf1
Calrify OuterPosition property in manual
David Bateman <dbateman@free.fr>
parents:
7608
diff
changeset
|
800 corner and width and height of the plot, in normalized units including |
b224a9a9ccf1
Calrify OuterPosition property in manual
David Bateman <dbateman@free.fr>
parents:
7608
diff
changeset
|
801 the tics, labels etc. For example, @code{[0.2, 0.3, 0.4, 0.5]} sets the |
b224a9a9ccf1
Calrify OuterPosition property in manual
David Bateman <dbateman@free.fr>
parents:
7608
diff
changeset
|
802 lower left corner of the axes at @math{(0.2, 0.3)} and the width and |
b224a9a9ccf1
Calrify OuterPosition property in manual
David Bateman <dbateman@free.fr>
parents:
7608
diff
changeset
|
803 height to be 0.4 and 0.5 respectively. |
6888 | 804 @end table |
805 | |
806 @node Line Properties | |
807 @subsubsection Line Properties | |
808 | |
809 @table @code | |
810 @itemx xdata | |
811 @itemx ydata | |
812 @itemx zdata | |
813 @itemx ldata | |
814 @itemx udata | |
815 @itemx xldata | |
816 @itemx xudata | |
6889 | 817 The data to be plotted. The @code{ldata} and @code{udata} elements are |
818 for errobars in the y direction, and the @code{xldata} and @code{xudata} | |
819 elements are for errorbars in the x direction. | |
820 | |
6888 | 821 @item color |
6889 | 822 The RGB color of the line, or a color name. @xref{Colors}. |
823 | |
6888 | 824 @item linestyle |
6889 | 825 @itemx linewidth |
826 @xref{Line Styles}. | |
827 | |
6888 | 828 @item marker |
829 @item markeredgecolor | |
830 @item markerfacecolor | |
831 @item markersize | |
6889 | 832 @xref{Marker Styles}. |
833 | |
6888 | 834 @item keylabel |
6889 | 835 The text of the legend entry corresponding to this line. Note that this |
836 property is not compatible with @sc{Matlab} and may be removed in a | |
837 future version of Octave. | |
6888 | 838 @end table |
839 | |
840 @node Text Properties | |
841 @subsubsection Text Properties | |
842 | |
843 @table @code | |
844 @item string | |
6889 | 845 The character string contained by the text object. |
846 | |
6888 | 847 @item units |
6889 | 848 May be @code{"normalized"} or @code{"graph"}. |
849 | |
6888 | 850 @item position |
6889 | 851 The coordinates of the text object. |
852 | |
6888 | 853 @item rotation |
6889 | 854 The angle of rotation for the displayed text, measured in degrees. |
855 | |
6888 | 856 @item horizontalalignment |
6889 | 857 May be @code{"left"}, @code{"center"}, or @code{"right"}. |
858 | |
6888 | 859 @item color |
6889 | 860 The color of the text. @xref{Colors}. |
7189 | 861 |
862 @item fontname | |
863 The font used for the text. | |
864 | |
865 @item fontsize | |
866 The size of the font, in points to use. | |
867 | |
868 @item fontangle | |
869 Flag whether the font is italic or normal. Valid values are 'normal', | |
870 'italic' and 'oblique'. | |
871 | |
872 @item fontweight | |
873 Flag whether the font is bold, etc. Valid values are 'normal', 'bold', | |
874 'demi' or 'light'. | |
875 | |
876 @item interpreter | |
877 Determines how the text is rendered. Valid values are 'none', 'tex' or | |
878 'latex'. | |
6888 | 879 @end table |
880 | |
7189 | 881 All text objects, including titles, labels, legends, and text, include |
882 the property 'interpreter', this property determines the manner in which | |
883 special control sequences in the text are rendered. If the interpreter | |
884 is set to 'none', then no rendering occurs. At this point the 'latex' | |
885 option is not implemented and so the 'latex' interpreter also does not | |
886 interpret the text. | |
887 | |
888 The 'tex' option implements a subset of @sc{TeX} functionality in the | |
889 rendering of the text. This allows the insertion of special characters | |
890 such as Greek or mathematical symbols within the text. The special | |
891 characters are also inserted with a code starting with the back-slash | |
892 (\) character, as in the table @ref{tab:extended}. | |
893 | |
894 In addition, the formating of the text can be changed within the string | |
895 with the codes | |
896 | |
897 @multitable @columnfractions .2 .2 .6 .2 | |
898 @item @tab \bf @tab Bold font @tab | |
899 @item @tab \it @tab Italic font @tab | |
900 @item @tab \sl @tab Oblique Font @tab | |
901 @item @tab \rm @tab Normal font @tab | |
902 @end multitable | |
903 | |
904 These are be used in conjunction with the @{ and @} characters to limit | |
905 the change in the font to part of the string. For example | |
906 | |
907 @example | |
908 xlabel ('@{\bf H@} = a @{\bf V@}') | |
909 @end example | |
910 | |
911 where the character 'a' will not appear in a bold font. Note that to | |
912 avoid having Octave interpret the backslash characters in the strings, | |
913 the strings should be in single quotes. | |
914 | |
915 It is also possible to change the fontname and size within the text | |
916 | |
917 @multitable @columnfractions .1 .4 .6 .1 | |
918 @item @tab \fontname@{@var{fontname}@} @tab Specify the font to use @tab | |
919 @item @tab \fontsize@{@var{size}@} @tab Specify the size of the font to | |
920 use @tab | |
921 @end multitable | |
922 | |
923 Finally, the superscript and subscripting can be controlled with the '^' | |
924 and '_' characters. If the '^' or '_' is followed by a @{ character, | |
925 then all of the block surrounded by the @{ @} pair is super- or | |
926 sub-scripted. Without the @{ @} pair, only the character immediately | |
927 following the '^' or '_' is super- or sub-scripted. | |
928 | |
929 @float Table,tab:extended | |
930 @iftex | |
931 @tex | |
932 \vskip 6pt | |
933 {\hbox to \hsize {\hfill\vbox{\offinterlineskip \tabskip=0pt | |
934 \halign{ | |
935 \vrule height2.0ex depth1.ex width 0.6pt #\tabskip=0.3em & | |
936 # \hfil & \vrule # & # \hfil & # \vrule & | |
937 # \hfil & \vrule # & # \hfil & # \vrule & | |
938 # \hfil & \vrule # & # \hfil & # \vrule | |
939 width 0.6pt \tabskip=0pt\cr | |
940 \noalign{\hrule height 0.6pt} | |
941 & Code && Sym && Code && Sym && Code && Sym &\cr | |
942 \noalign{\hrule} | |
7608
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
943 & $\backslash$forall && $\forall$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
944 && $\backslash$exists && $\exists$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
945 && $\backslash$ni && $\ni$ &\cr |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
946 & $\backslash$cong && $\cong$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
947 && $\backslash$Delta && $\Delta$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
948 && $\backslash$Phi && $\Phi$ &\cr |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
949 & $\backslash$Gamma && $\Gamma$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
950 && $\backslash$vartheta && $\vartheta$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
951 && $\backslash$Lambda && $\Lambda$ &\cr |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
952 & $\backslash$Pi && $\Pi$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
953 && $\backslash$Theta && $\Theta$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
954 && $\backslash$Sigma && $\Sigma$ &\cr |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
955 & $\backslash$varsigma && $\varsigma$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
956 && $\backslash$Omega && $\Omega$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
957 && $\backslash$Xi && $\Xi$ &\cr |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
958 & $\backslash$Psi && $\Psi$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
959 && $\backslash$perp && $\perp$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
960 && $\backslash$alpha && $\alpha$ &\cr |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
961 & $\backslash$beta && $\beta$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
962 && $\backslash$chi && $\chi$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
963 && $\backslash$delta && $\delta$ &\cr |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
964 & $\backslash$epsilon && $\epsilon$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
965 && $\backslash$phi && $\phi$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
966 && $\backslash$gamma && $\gamma$ &\cr |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
967 & $\backslash$eta && $\eta$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
968 && $\backslash$iota && $\iota$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
969 && $\backslash$varphi && $\varphi$ &\cr |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
970 & $\backslash$kappa && $\kappa$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
971 && $\backslash$lambda && $\lambda$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
972 && $\backslash$mu && $\mu$ &\cr |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
973 & $\backslash$nu && $\nu$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
974 && $\backslash$o && $\o$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
975 && $\backslash$pi && $\pi$ &\cr |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
976 & $\backslash$theta && $\theta$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
977 && $\backslash$rho && $\rho$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
978 && $\backslash$sigma && $\sigma$ &\cr |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
979 & $\backslash$tau && $\tau$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
980 && $\backslash$upsilon && $\upsilon$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
981 && $\backslash$varpi && $\varpi$ &\cr |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
982 & $\backslash$omega && $\omega$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
983 && $\backslash$xi && $\xi$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
984 && $\backslash$psi && $\psi$ &\cr |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
985 & $\backslash$zeta && $\zeta$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
986 && $\backslash$sim && $\sim$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
987 && $\backslash$Upsilon && $\Upsilon$ &\cr |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
988 & $\backslash$prime && $\prime$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
989 && $\backslash$leq && $\leq$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
990 && $\backslash$infty && $\infty$ &\cr |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
991 & $\backslash$clubsuit && $\clubsuit$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
992 && $\backslash$diamondsuit && $\diamondsuit$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
993 && $\backslash$heartsuit && $\heartsuit$ &\cr |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
994 & $\backslash$spadesuit && $\spadesuit$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
995 && $\backslash$leftrightarrow && $\leftrightarrow$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
996 && $\backslash$leftarrow && $\leftarrow$ &\cr |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
997 & $\backslash$uparrow && $\uparrow$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
998 && $\backslash$rightarrow && $\rightarrow$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
999 && $\backslash$downarrow && $\downarrow$ &\cr |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1000 & $\backslash$circ && $\circ$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1001 && $\backslash$pm && $\pm$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1002 && $\backslash$geq && $\geq$ &\cr |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1003 & $\backslash$times && $\times$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1004 && $\backslash$propto && $\propto$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1005 && $\backslash$partial && $\partial$ &\cr |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1006 & $\backslash$bullet && $\bullet$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1007 && $\backslash$div && $\div$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1008 && $\backslash$neq && $\neq$ &\cr |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1009 & $\backslash$equiv && $\equiv$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1010 && $\backslash$approx && $\approx$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1011 && $\backslash$ldots && $\ldots$ &\cr |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1012 & $\backslash$mid && $\mid$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1013 && $\backslash$aleph && $\aleph$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1014 && $\backslash$Im && $\Im$ &\cr |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1015 & $\backslash$Re && $\Re$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1016 && $\backslash$wp && $\wp$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1017 && $\backslash$otimes && $\otimes$ &\cr |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1018 & $\backslash$oplus && $\oplus$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1019 && $\backslash$oslash && $\oslash$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1020 && $\backslash$cap && $\cap$ &\cr |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1021 & $\backslash$cup && $\cup$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1022 && $\backslash$supset && $\supset$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1023 && $\backslash$supseteq && $\supseteq$ &\cr |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1024 & $\backslash$subset && $\subset$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1025 && $\backslash$subseteq && $\subseteq$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1026 && $\backslash$in && $\in$ &\cr |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1027 & $\backslash$notin && $\notin$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1028 && $\backslash$angle && $\angle$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1029 && $\backslash$bigtriangledown && $\bigtriangledown$ &\cr |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1030 & $\backslash$langle && $\langle$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1031 && $\backslash$rangle && $\rangle$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1032 && $\backslash$nabla && $\nabla$ &\cr |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1033 & $\backslash$prod && $\prod$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1034 && $\backslash$surd && $\surd$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1035 && $\backslash$cdot && $\cdot$ &\cr |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1036 & $\backslash$neg && $\neg$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1037 && $\backslash$wedge && $\wedge$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1038 && $\backslash$vee && $\vee$ &\cr |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1039 & $\backslash$Leftrightarrow && $\Leftrightarrow$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1040 && $\backslash$Leftarrow && $\Leftarrow$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1041 && $\backslash$Uparrow && $\Uparrow$ &\cr |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1042 & $\backslash$Rightarrow && $\Rightarrow$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1043 && $\backslash$Downarrow && $\Downarrow$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1044 && $\backslash$diamond && $\diamond$ &\cr |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1045 & $\backslash$copyright && $\copyright$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1046 && $\backslash$rfloor && $\rfloor$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1047 && $\backslash$lceil && $\lceil$ &\cr |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1048 & $\backslash$lfloor && $\lfloor$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1049 && $\backslash$rceil && $\rceil$ |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1050 && $\backslash$int && $\int$ &\cr |
7189 | 1051 \noalign{\hrule height 0.6pt} |
1052 }}\hfill}} | |
1053 @end tex | |
1054 @end iftex | |
1055 @ifnottex | |
1056 @multitable @columnfractions .125 .25 .25 .25 .125 | |
7608
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1057 @item @tab \forall @tab \exists @tab \ni @tab |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1058 @item @tab \cong @tab \Delta @tab \Phi @tab |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1059 @item @tab \Gamma @tab \vartheta @tab \Lambda @tab |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1060 @item @tab \Pi @tab \Theta @tab \Sigma @tab |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1061 @item @tab \varsigma @tab \Omega @tab \Xi @tab |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1062 @item @tab \Psi @tab \perp @tab \alpha @tab |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1063 @item @tab \beta @tab \chi @tab \delta @tab |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1064 @item @tab \epsilon @tab \phi @tab \gamma @tab |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1065 @item @tab \eta @tab \iota @tab \varphi @tab |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1066 @item @tab \kappa @tab \lambda @tab \mu @tab |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1067 @item @tab \nu @tab \o @tab \pi @tab |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1068 @item @tab \theta @tab \rho @tab \sigma @tab |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1069 @item @tab \tau @tab \upsilon @tab \varpi @tab |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1070 @item @tab \omega @tab \xi @tab \psi @tab |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1071 @item @tab \zeta @tab \sim @tab \Upsilon @tab |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1072 @item @tab \prime @tab \leq @tab \infty @tab |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1073 @item @tab \clubsuit @tab \diamondsuit @tab \heartsuit @tab |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1074 @item @tab \spadesuit @tab \leftrightarrow @tab \leftarrow @tab |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1075 @item @tab \uparrow @tab \rightarrow @tab \downarrow @tab |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1076 @item @tab \circ @tab \pm @tab \geq @tab |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1077 @item @tab \times @tab \propto @tab \partial @tab |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1078 @item @tab \bullet @tab \div @tab \neq @tab |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1079 @item @tab \equiv @tab \approx @tab \ldots @tab |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1080 @item @tab \mid @tab \aleph @tab \Im @tab |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1081 @item @tab \Re @tab \wp @tab \otimes @tab |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1082 @item @tab \oplus @tab \oslash @tab \cap @tab |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1083 @item @tab \cup @tab \supset @tab \supseteq @tab |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1084 @item @tab \subset @tab \subseteq @tab \in @tab |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1085 @item @tab \notin @tab \angle @tab \bigrightriangledown @tab |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1086 @item @tab \langle @tab \rangle @tab \nabla @tab |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1087 @item @tab \prod @tab \surd @tab \cdot @tab |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1088 @item @tab \neg @tab \wedge @tab \vee @tab |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1089 @item @tab \Leftrightarrow @tab \Leftarrow @tab \Uparrow @tab |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1090 @item @tab \Rightarrow @tab \Downarrow @tab \diamond @tab |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1091 @item @tab \copyright @tab \lfloor @tab \lceil @tab |
49810341db91
Correct typos in __go_draw_axes__.m and update Manual
godfrey@qss.Stanford.EDU
parents:
7189
diff
changeset
|
1092 @item @tab \rfloor @tab \rceil @tab \int @tab |
7189 | 1093 @end multitable |
1094 @end ifnottex | |
1095 @caption{Available special characters in @sc{TeX} mode} | |
1096 @end float | |
1097 | |
1098 A complete example showing the capabilities of the extended text is | |
1099 | |
1100 @example | |
1101 @group | |
1102 x = 0:0.01:3; | |
1103 plot(x,erf(x)); | |
1104 hold on; | |
1105 plot(x,x,"r"); | |
1106 axis([0, 3, 0, 1]); | |
1107 text(0.65, 0.6175, strcat('\leftarrow x = @{2/\surd\pi', | |
1108 ' @{\fontsize@{16@}\int_@{\fontsize@{8@}0@}^@{\fontsize@{8@}x@}@}', | |
1109 ' e^@{-t^2@} dt@} = 0.6175')) | |
1110 @end group | |
1111 @end example | |
1112 | |
1113 @ifnotinfo | |
1114 @noindent | |
1115 The result of which can be seen in @ref{fig:extendedtext} | |
1116 | |
1117 @float Figure,fig:extendedtext | |
1118 @image{extended,8cm} | |
1119 @caption{Example of inclusion of text with the @sc{TeX} interpreter} | |
1120 @end float | |
1121 @end ifnotinfo | |
1122 | |
6888 | 1123 @node Image Properties |
1124 @subsubsection Image Properties | |
1125 | |
1126 @table @code | |
1127 @item cdata | |
6889 | 1128 The data for the image. Each pixel of the image corresponds to an |
1129 element of @code{cdata}. The value of an element of @code{cdata} | |
1130 specifies the row-index into the colormap of the axes object containing | |
1131 the image. The color value found in the color map for the given index | |
1132 determines the color of the pixel. | |
1133 | |
1134 @item xdata | |
6888 | 1135 @itemx ydata |
7001 | 1136 Two-element vectors specifying the range of the x- and y- coordinates for |
6889 | 1137 the image. |
6888 | 1138 @end table |
1139 | |
1140 @node Patch Properties | |
1141 @subsubsection Patch Properties | |
1142 | |
1143 @table @code | |
1144 @item cdata | |
1145 @itemx xdata | |
1146 @itemx ydata | |
1147 @itemx zdata | |
6889 | 1148 Data defining the patch object. |
1149 | |
6888 | 1150 @item facecolor |
6889 | 1151 The fill color of the patch. @xref{Colors}. |
1152 | |
6888 | 1153 @item facealpha |
6889 | 1154 A number in the range [0, 1] indicating the transparency of the patch. |
1155 | |
6888 | 1156 @item edgecolor |
6889 | 1157 The color of the line defining the patch. @xref{Colors}. |
1158 | |
6888 | 1159 @item linestyle |
6889 | 1160 @itemx linewidth |
1161 @xref{Line Styles}. | |
1162 | |
6888 | 1163 @item marker |
6889 | 1164 @itemx markeredgecolor |
1165 @itemx markerfacecolor | |
1166 @itemx markersize | |
1167 @xref{Marker Styles}. | |
6888 | 1168 @end table |
1169 | |
1170 @node Surface Properties | |
1171 @subsubsection Surface Properties | |
1172 | |
1173 @table @code | |
1174 @item xdata | |
1175 @itemx ydata | |
1176 @itemx zdata | |
6889 | 1177 The data determining the surface. The @code{xdata} and @code{ydata} |
1178 elements are vectors and @code{zdata} must be a matrix. | |
1179 | |
6888 | 1180 @item keylabel |
6889 | 1181 The text of the legend entry corresponding to this surface. Note that |
1182 this property is not compatible with @sc{Matlab} and may be removed in a | |
1183 future version of Octave. | |
1184 @end table | |
1185 | |
7984
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
1186 @node Seacrhing Properties |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
1187 @subsubsection Seacrhing Properties |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
1188 |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
1189 @DOCSTRING(findobj) |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
1190 |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
1191 @DOCSTRING(findall) |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
1192 |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7981
diff
changeset
|
1193 |
6891 | 1194 @node Managing Default Properties |
1195 @subsection Managing Default Properties | |
1196 | |
6892 | 1197 Object properties have two classes of default values, @dfn{factory |
1198 defaults} (the initial values) and @dfn{user-defined defaults}, which | |
1199 may override the factory defaults. | |
6891 | 1200 |
1201 Although default values may be set for any object, they are set in | |
1202 parent objects and apply to child objects. For example, | |
1203 | |
1204 @example | |
1205 set (0, "defaultlinecolor", "green"); | |
1206 @end example | |
1207 | |
1208 @noindent | |
1209 sets the default line color for all objects. The rule for constructing | |
1210 the property name to set a default value is | |
1211 | |
1212 @example | |
1213 default + @var{object-type} + @var{property-name} | |
1214 @end example | |
1215 | |
1216 This rule can lead to some strange looking names, for example | |
1217 @code{defaultlinelinewidth"} specifies the default @code{linewidth} | |
1218 property for @code{line} objects. | |
1219 | |
1220 The example above used the root figure object, 0, so the default | |
1221 property value will apply to all line objects. However, default values | |
1222 are hierarchical, so defaults set in a figure objects override those | |
1223 set in the root figure object. Likewise, defaults set in axes objects | |
1224 override those set in figure or root figure objects. For example, | |
1225 | |
1226 @example | |
1227 @group | |
1228 subplot (2, 1, 1); | |
1229 set (0, "defaultlinecolor", "red"); | |
1230 set (1, "defaultlinecolor", "green"); | |
1231 set (gca (), "defaultlinecolor", "blue"); | |
1232 line (1:10, rand (1, 10)); | |
1233 subplot (2, 1, 2); | |
1234 line (1:10, rand (1, 10)); | |
1235 figure (2) | |
1236 line (1:10, rand (1, 10)); | |
1237 @end group | |
1238 @end example | |
1239 | |
1240 @noindent | |
1241 produces two figures. The line in first subplot window of the first | |
1242 figure is blue because it inherits its color from its parent axes | |
1243 object. The line in the second subplot window of the first figure is | |
1244 green because it inherits its color from its parent figure object. The | |
1245 line in the second figure window is red because it inherits its color | |
1246 from the global root figure parent object. | |
1247 | |
1248 To remove a user-defined default setting, set the default property to | |
1249 the value @code{"remove"}. For example, | |
1250 | |
1251 @example | |
1252 set (gca (), "defaultlinecolor", "remove"); | |
1253 @end example | |
1254 | |
1255 @noindent | |
1256 removes the user-defined default line color setting from the current axes | |
1257 object. | |
1258 | |
1259 Getting the @code{"default"} property of an object returns a list of | |
1260 user-defined defaults set for the object. For example, | |
1261 | |
1262 @example | |
1263 get (gca (), "default"); | |
1264 @end example | |
1265 | |
1266 @noindent | |
1267 returns a list of user-defined default values for the current axes | |
1268 object. | |
1269 | |
1270 Factory default values are stored in the root figure object. The | |
1271 command | |
1272 | |
1273 @example | |
1274 get (0, "factory"); | |
1275 @end example | |
1276 | |
1277 @noindent | |
1278 returns a list of factory defaults. | |
1279 | |
6889 | 1280 @node Colors |
1281 @subsection Colors | |
1282 | |
1283 Colors may be specified as RGB triplets with values ranging from zero to | |
1284 one, or by name. Recognized color names include @code{"blue"}, | |
1285 @code{"black"}, @code{"cyan"}, @code{"green"}, @code{"magenta"}, | |
1286 @code{"red"}, @code{"white"}, and @code{"yellow"}. | |
1287 | |
1288 @node Line Styles | |
1289 @subsection Line Styles | |
7001 | 1290 Line styles are specified by the following properties: |
6889 | 1291 |
1292 @table @code | |
1293 @item linestyle | |
1294 May be one of | |
1295 @table @code | |
1296 @item "-" | |
1297 Solid lines. | |
1298 @item "--" | |
1299 Dashed lines. | |
1300 @item ":" | |
1301 Points. | |
1302 @item "-." | |
1303 A dash-dot line. | |
1304 @end table | |
1305 | |
1306 @item linewidth | |
1307 A number specifying the width of the line. The default is 1. A value | |
1308 of 2 is twice as wide as the default, etc. | |
1309 @end table | |
1310 | |
1311 @node Marker Styles | |
1312 @subsection Marker Styles | |
7001 | 1313 Marker styles are specified by the following properties: |
6889 | 1314 @table @code |
1315 @item marker | |
1316 A character indicating a plot marker to be place at each data point, or | |
1317 @code{"none"}, meaning no markers should be displayed. | |
1318 | |
1319 @itemx markeredgecolor | |
1320 The color of the edge around the marker, or @code{"auto"}, meaning that | |
1321 the edge color is the same as the face color. @xref{Colors}. | |
1322 | |
1323 @itemx markerfacecolor | |
1324 The color of the marker, or @code{"none"} to indicate that the marker | |
1325 should not be filled. @xref{Colors}. | |
1326 | |
1327 @itemx markersize | |
1328 A number specifying the size of the marker. The default is 1. A value | |
1329 of 2 is twice as large as the default, etc. | |
6888 | 1330 @end table |
1331 | |
4167 | 1332 @node Interaction with gnuplot |
6888 | 1333 @subsection Interaction with @code{gnuplot} |
3428 | 1334 |
1335 @DOCSTRING(gnuplot_binary) | |
1336 | |
6331 | 1337 @DOCSTRING(gnuplot_use_title_option) |