# HG changeset patch # User Fotios Kasolis # Date 1318449770 -10800 # Node ID 8f0fa0fb75be53aac37ac797cb95c02245d8aee5 # Parent 3f3aa11aca4123f539a93731e8c161102e55fc25 add only color change possibility in spy.m diff -r 3f3aa11aca41 -r 8f0fa0fb75be scripts/sparse/spy.m --- a/scripts/sparse/spy.m Tue Oct 11 14:08:38 2011 -0500 +++ b/scripts/sparse/spy.m Wed Oct 12 23:02:50 2011 +0300 @@ -21,7 +21,7 @@ ## @deftypefnx {Function File} {} spy (@dots{}, @var{markersize}) ## @deftypefnx {Function File} {} spy (@dots{}, @var{line_spec}) ## Plot the sparsity pattern of the sparse matrix @var{x}. If the argument -## @var{markersize} is given as an scalar value, it is used to determine the +## @var{markersize} is given as a scalar value, it is used to determine the ## point size in the plot. If the string @var{line_spec} is given it is ## passed to @code{plot} and determines the appearance of the plot. ## @seealso{plot} @@ -41,7 +41,9 @@ endif for i = 1:length (varargin) if (ischar (varargin{i})) - line_spec = varargin{i}; + if (length (varargin{i}) == 1) + line_spec = [line_spec, varargin{i}]; + endif elseif (isscalar (varargin{i})) markersize = varargin{i}; else