# HG changeset patch # User Fotios Kasolis # Date 1318456063 -10800 # Node ID 9d7233ec8cbc162bac4b0ec84e4e5fb39a1a5e7b # Parent f0daeb0eab45c8366d859780a14a6ae115317f65 add only color change possibility in spy.m diff -r f0daeb0eab45 -r 9d7233ec8cbc scripts/sparse/spy.m --- a/scripts/sparse/spy.m Wed Oct 12 14:23:08 2011 -0700 +++ b/scripts/sparse/spy.m Thu Oct 13 00:47:43 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,11 @@ 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}]; + else + line_spec = varargin{i}; + endif elseif (isscalar (varargin{i})) markersize = varargin{i}; else