Mercurial > hg > octave-lyh
diff scripts/plot/rectangle.m @ 12763:f511bfe00d14
maint: Periodic merge of stable to default
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Tue, 21 Jun 2011 08:58:56 -0700 |
parents | 13bcd62824a7 |
children | e81ddf9cacd5 |
line wrap: on
line diff
--- a/scripts/plot/rectangle.m +++ b/scripts/plot/rectangle.m @@ -25,15 +25,15 @@ ## @deftypefnx {Function File} {@var{h} =} rectangle (@dots{}) ## ## Draw rectangular patch defined by @var{pos} and @var{curv}. The variable -## @code{@var{pos}(1 : 2)} defines the lower left-hand corner of the patch -## and @code{@var{pos}(3 : 4)} its width and height. By default the value of -## @var{pos} is @var{[0, 0, 1, 1]}. +## @code{@var{pos}(1:2)} defines the lower left-hand corner of the patch +## and @code{@var{pos}(3:4)} defines its width and height. By default, the +## value of @var{pos} is @code{[0, 0, 1, 1]}. ## ## The variable @var{curv} defines the curvature of the sides of the rectangle -## and it can be a scalar or two-element vector with values between 0 and 1. -## A value of 0 represents no curvature of the side, where as a value of 1 -## means that the rectangular side is entirely curved into an arc of a circle. -## If curvature is a two-element vector, then the first element is the +## and may be a scalar or two-element vector with values between 0 and 1. +## A value of 0 represents no curvature of the side, whereas a value of 1 +## means that the side is entirely curved into the arc of a circle. +## If @var{curv} is a two-element vector, then the first element is the ## curvature along the x-axis of the patch and the second along y-axis. ## ## If @var{curv} is a scalar, it represents the curvature of the shorter of the @@ -41,7 +41,7 @@ ## by ## ## @example -## min (pos (1: 2)) / max (pos (1:2)) * curv +## min (pos (1:2)) / max (pos (1:2)) * curv ## @end example ## ## Other properties are passed to the underlying patch command. If called