comparison scripts/plot/plot.m @ 6459:5dc550e1f419

[project @ 2007-03-26 18:11:58 by jwe]
author jwe
date Mon, 26 Mar 2007 18:11:58 +0000
parents 2110cc251779
children 2f0abcba669c
comparison
equal deleted inserted replaced
6458:6588b4fe0869 6459:5dc550e1f419
35 ## or PNG, use the @code{print} command. 35 ## or PNG, use the @code{print} command.
36 ## 36 ##
37 ## If more than one argument is given, they are interpreted as 37 ## If more than one argument is given, they are interpreted as
38 ## 38 ##
39 ## @example 39 ## @example
40 ## plot (@var{x}, @var{y}, @var{fmt} ...) 40 ## plot (@var{x}, @var{y}, @var{fmt}, @dots{})
41 ## @end example 41 ## @end example
42 ## 42 ##
43 ## @noindent 43 ## @noindent
44 ## where @var{y} and @var{fmt} are optional, and any number of argument 44 ## or as
45 ## sets may appear. The @var{x} and @var{y} values are 45 ##
46 ## interpreted as follows: 46 ## @example
47 ## plot (@var{x}, @var{y}, @var{property}, @var{value}, @dots{})
48 ## @end example
49 ##
50 ## @noindent
51 ## where @var{y}, @var{fmt}, @var{property} and @var{value} are optional,
52 ## and any number of argument sets may appear. The @var{x} and @var{y}
53 ## values are interpreted as follows:
47 ## 54 ##
48 ## @itemize @bullet 55 ## @itemize @bullet
49 ## @item 56 ## @item
50 ## If a single data argument is supplied, it is taken as the set of @var{y} 57 ## If a single data argument is supplied, it is taken as the set of @var{y}
51 ## coordinates and the @var{x} coordinates are taken to be the indices of 58 ## coordinates and the @var{x} coordinates are taken to be the indices of
133 ## To do so, include the desired title between semi-colons after the 140 ## To do so, include the desired title between semi-colons after the
134 ## formatting sequence described above, e.g. "+3;Key Title;" 141 ## formatting sequence described above, e.g. "+3;Key Title;"
135 ## Note that the last semi-colon is required and will generate an error if 142 ## Note that the last semi-colon is required and will generate an error if
136 ## it is left out. 143 ## it is left out.
137 ## 144 ##
145 ## If a @var{property} is given it must be followed by @var{value}. The
146 ## property value pairs are applied to the lines drawn by @code{plot}.
147 ##
138 ## Here are some plot examples: 148 ## Here are some plot examples:
139 ## 149 ##
140 ## @example 150 ## @example
141 ## plot (x, y, "@@12", x, y2, x, y3, "4", x, y4, "+") 151 ## plot (x, y, "@@12", x, y2, x, y3, "4", x, y4, "+")
142 ## @end example 152 ## @end example
144 ## This command will plot @code{y} with points of type 2 (displayed as 154 ## This command will plot @code{y} with points of type 2 (displayed as
145 ## @samp{+}) and color 1 (red), @code{y2} with lines, @code{y3} with lines of 155 ## @samp{+}) and color 1 (red), @code{y2} with lines, @code{y3} with lines of
146 ## color 4 (magenta) and @code{y4} with points displayed as @samp{+}. 156 ## color 4 (magenta) and @code{y4} with points displayed as @samp{+}.
147 ## 157 ##
148 ## @example 158 ## @example
149 ## plot (b, "*") 159 ## plot (b, "*", "markersize", 3)
150 ## @end example 160 ## @end example
151 ## 161 ##
152 ## This command will plot the data in the variable @code{b} will be plotted 162 ## This command will plot the data in the variable @code{b} will be plotted
153 ## with points displayed as @samp{*}. 163 ## with points displayed as @samp{*} with a marker size of 3.
154 ## 164 ##
155 ## @example 165 ## @example
156 ## t = 0:0.1:6.3; 166 ## t = 0:0.1:6.3;
157 ## plot (t, cos(t), "-;cos(t);", t, sin(t), "+3;sin(t);"); 167 ## plot (t, cos(t), "-;cos(t);", t, sin(t), "+3;sin(t);");
158 ## @end example 168 ## @end example