# HG changeset patch # User Jordi Gutiérrez Hermoso # Date 1303056917 18000 # Node ID 2fa14ae5b2c433ee668b42ba4cb10ee39e6b9566 # Parent e66dbc6485f2b9c472776d2b0860971c2c07fc63# Parent 708186085e0dbbf93cdfe7112ab022877541d0b4 Merge with Savannah repo diff --git a/doc/ChangeLog b/doc/ChangeLog --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,8 @@ +2011-04-16 Ben Abbott + + * interpreter/plot.txi: Clarify that inheritance of default property + values only applies to the named object type. + 2011-04-12 Ben Abbott * interpreter/data.txi: Replace xref{Data Structures} with diff --git a/doc/interpreter/plot.txi b/doc/interpreter/plot.txi --- a/doc/interpreter/plot.txi +++ b/doc/interpreter/plot.txi @@ -2390,7 +2390,11 @@ may override the factory defaults. Although default values may be set for any object, they are set in -parent objects and apply to child objects. For example, +parent objects and apply to child objects, of the specified object type. +For example, seeting the default @code{color} property of @code{line} +objects to "green", for the @code{root} object, will result in all +@code{line} objects inheriting the @code{color} "green" as the default +value. @example set (0, "defaultlinecolor", "green"); diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,8 @@ +2011-04-17 Patrick Häcker + + * strings/mat2str.m: Limit the number of digits to one less than + available for double. + 2011-04-15 Kai Habel * general/interp1.m, polynomial/mkpp.m, polynomial/pchip.m, diff --git a/scripts/strings/mat2str.m b/scripts/strings/mat2str.m --- a/scripts/strings/mat2str.m +++ b/scripts/strings/mat2str.m @@ -28,7 +28,7 @@ ## scalar then both real and imaginary parts of the matrix are printed ## to the same precision. Otherwise @code{@var{n} (1)} defines the ## precision of the real part and @code{@var{n} (2)} defines the -## precision of the imaginary part. The default for @var{n} is 17. +## precision of the imaginary part. The default for @var{n} is 15. ## ## If the argument 'class' is given, then the class of @var{x} is ## included in the string in such a way that the eval will result in the @@ -56,13 +56,13 @@ if (nargin < 2 || isempty (n)) ## Default precision - n = 17; + n = 15; endif if (nargin < 3) if (ischar (n)) cls = n; - n = 17; + n = 15; else cls = ""; endif @@ -137,3 +137,4 @@ %!assert (mat2str (true), "true"); %!assert (mat2str (false), "false"); %!assert (mat2str (logical (eye (2))), "[true,false;false,true]"); +%!assert (mat2str (0.7), "0.7")