comparison scripts/plot/__pltopt__.m @ 6267:0078497b3b0b

[project @ 2007-02-01 10:34:14 by jwe]
author jwe
date Thu, 01 Feb 2007 10:34:14 +0000
parents cc2bee854d23
children 5dc550e1f419
comparison
equal deleted inserted replaced
6266:e5c3839f9403 6267:0078497b3b0b
19 19
20 ## -*- texinfo -*- 20 ## -*- texinfo -*-
21 ## @deftypefn {Function File} {} __pltopt__ (@var{caller}, @var{opt}) 21 ## @deftypefn {Function File} {} __pltopt__ (@var{caller}, @var{opt})
22 ## Decode plot option strings. 22 ## Decode plot option strings.
23 ## 23 ##
24 ## If @var{opt} is a valid option string, return a string of the form
25 ## @code{"w l 2"} ("with lines 2"). Uses abbreviations for the options
26 ## to avoid overrunning gnuplot's command line buffer unnecessarily.
27 ##
28 ## @var{opt} can currently be some combination of the following: 24 ## @var{opt} can currently be some combination of the following:
29 ## 25 ##
30 ## @table @code 26 ## @table @code
31 ## @item "-" 27 ## @item "-"
32 ## For lines plot style (default). 28 ## For solid linestyle (default).
33 ## 29 ##
34 ## @item "." 30 ## @item "--"
31 ## For dashed line style.
32 ##
33 ## @item "-."
34 ## For linespoints plot style.
35 ##
36 ## @item ":"
35 ## For dots plot style. 37 ## For dots plot style.
36 ## 38 ##
37 ## @item "@@" 39 ## @item "r"
38 ## For points plot style. 40 ## Red line color.
39 ## 41 ##
40 ## @item "-@@" 42 ## @item "g"
41 ## For linespoints plot style. 43 ## Green line color.
42 ## 44 ##
43 ## @item "^" 45 ## @item "b"
44 ## For impulses plot style. 46 ## Blue line color.
45 ## 47 ##
46 ## @item "L" 48 ## @item "c"
47 ## For steps plot style. 49 ## Cyan line color.
48 ## 50 ##
49 ## @item "#" 51 ## @item "m"
50 ## For boxes plot style. 52 ## Magenta line color.
51 ## 53 ##
52 ## @item "~" 54 ## @item "y"
53 ## For yerrorbars plot style. 55 ## Yellow line color.
54 ## 56 ##
55 ## @item ">" 57 ## @item "k"
56 ## For xerrorbars plot style. 58 ## Black line color.
57 ## 59 ##
58 ## @item "~>" 60 ## @item "w"
59 ## For xyerrorbars plot style. 61 ## White line color.
60 ##
61 ## @item "#~"
62 ## For boxerrorbars plot style.
63 ##
64 ## @item "#~>"
65 ## For boxxyerrorbars plot style.
66 ##
67 ## @item "n"
68 ## With @code{n} in 1-6 (wraps at 8), plot color
69 ##
70 ## @item "nm"
71 ## With @code{m} in 1-6 (wraps at 6), point style (only valid for @code{"@@"} or
72 ## @code{"-@@"})
73 ##
74 ## @item @var{c}
75 ## Where @var{c} is one of @code{"r"}, @code{"g"}, @code{"b"}, @code{"m"},
76 ## @code{"c"}, or @code{"w"} colors.
77 ## 62 ##
78 ## @item ";title;" 63 ## @item ";title;"
79 ## Here @code{"title"} is the label for the key. 64 ## Here @code{"title"} is the label for the key.
80 ## 65 ##
81 ## @item + 66 ## @item "+"
82 ## @itemx * 67 ## @itemx "o"
83 ## @itemx o 68 ## @itemx "*"
84 ## @itemx x 69 ## @itemx "."
70 ## @itemx "x"
71 ## @itemx "s"
72 ## @itemx "d"
73 ## @itemx "^"
74 ## @itemx "v"
75 ## @itemx ">"
76 ## @itemx "<"
77 ## @itemx "p"
78 ## @itemx "h"
85 ## Used in combination with the points or linespoints styles, set the point 79 ## Used in combination with the points or linespoints styles, set the point
86 ## style. 80 ## style.
87 ## @end table 81 ## @end table
88 ## 82 ##
89 ## The legend may be fixed to include the name of the variable 83 ## The legend may be fixed to include the name of the variable
90 ## plotted in some future version of Octave. 84 ## plotted in some future version of Octave.
91 ## 85 ##
92 ## The colors, line styles, and point styles have the following
93 ## meanings for X11 and Postscript terminals under Gnuplot 3.6.
94 ##
95 ## @example
96 ## Number ------ Color ------- Line Style ---- Points Style ----
97 ## x11 postscript postscript x11 postscript
98 ## =====================================================================
99 ## 1 red green solid "o" "+"
100 ## 2 green blue long dash "+" "x"
101 ## 3 blue red short dash square "*"
102 ## 4 magenta magenta dotted "x" open square
103 ## 5 cyan cyan dot long dash triangle filled square
104 ## 6 brown yellow dot short dash "*" "o"
105 ## @end example
106 ## @seealso{__pltopt1__} 86 ## @seealso{__pltopt1__}
107 ## @end deftypefn 87 ## @end deftypefn
108 88
109 ## Author: jwe 89 ## Author: jwe
110 90