# HG changeset patch # User Rik # Date 1306987214 25200 # Node ID fb93b94dfc8260b9e02dd26033f191306a26345b # Parent ee4775d04d7f2dd0a9488fdb3e0aa7cd1a75fcf4 Add rectangle to new functions list in NEWS. * NEWS: Add rectangle to new functions list in NEWS. * unimplemented.m: Remove rectangle from list. * rectangle.m: Use double spaces for sentence breaks in Texinfo diff --git a/NEWS b/NEWS --- a/NEWS +++ b/NEWS @@ -350,15 +350,15 @@ exponent where the exponent is a multiple of 3. ** The following functions are new in Octave 3.4: - accumdim divergence merge ppjumps textread - bitpack erfcx nfields pqpnonneg uigetdir - bitunpack fileread nth_element quadcc uigetfile - blkmm fminbnd onCleanup randi uiputfile - cbrt fskipl pbaspect repelems uimenu - curl ifelse pie3 reset whitebg - chop ishermitian powerset rsf2csf - colstyle isindex ppder saveas - daspect luupdate ppint strread + accumdim divergence merge ppjumps strread + bitpack erfcx nfields pqpnonneg textread + bitunpack fileread nth_element quadcc uigetdir + blkmm fminbnd onCleanup randi uigetfile + cbrt fskipl pbaspect rectangle uiputfile + curl ifelse pie3 repelems uimenu + chop ishermitian powerset reset whitebg + colstyle isindex ppder rsf2csf + daspect luupdate ppint saveas ** Using the image function to view images with external programs such as display, xv, and xloadimage is no longer supported. The diff --git a/scripts/miscellaneous/unimplemented.m b/scripts/miscellaneous/unimplemented.m --- a/scripts/miscellaneous/unimplemented.m +++ b/scripts/miscellaneous/unimplemented.m @@ -329,7 +329,6 @@ "quad2d", "questdlg", "rbbox", - "rectangle", "recycle", "reducepatch", "reducevolume", diff --git a/scripts/plot/rectangle.m b/scripts/plot/rectangle.m --- a/scripts/plot/rectangle.m +++ b/scripts/plot/rectangle.m @@ -17,16 +17,16 @@ ## . ## -*- texinfo -*- -## @deftypefn {Function File} {} rectangle () +## @deftypefn {Function File} {} rectangle () ## @deftypefnx {Function File} {} rectangle (@dots{}, "Position", @var{pos}) ## @deftypefnx {Function File} {} rectangle (@dots{}, "Curvature", @var{curv}) ## @deftypefnx {Function File} {} rectangle (@dots{}, "EdgeColor", @var{ec}) ## @deftypefnx {Function File} {} rectangle (@dots{}, "FaceColor", @var{fc}) ## @deftypefnx {Function File} {@var{h} =} rectangle (@dots{}) ## -## Draw rectangular patch defined by @var{pos} and @var{curv}. The variable +## 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 +## and @code{@var{pos}(3 : 4)} its width and height. By default the value of ## @var{pos} is @var{[0, 0, 1, 1]}. ## ## The variable @var{curv} defines the curvature of the sides of the rectangle @@ -44,7 +44,7 @@ ## min (pos (1: 2)) / max (pos (1:2)) * curv ## @end example ## -## Other properties are passed to the underlying patch command. If called +## Other properties are passed to the underlying patch command. If called ## with an output argument, @code{rectangle} returns the handle to the ## rectangle. ## @end deftypefn @@ -202,6 +202,7 @@ "facecolor", get (h, "facecolor")); endfunction + %!demo %! close all %! axis equal