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