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