# HG changeset patch # User Jordi GutiƩrrez Hermoso # Date 1318469779 18000 # Node ID cb52dd180d36eff5ca1dd28c017fd19275cb784a # Parent 9d7233ec8cbc162bac4b0ec84e4e5fb39a1a5e7b# Parent add91fa2691a34769ebdb6cf7ce62871ed811ed0 Merge in Fotios' change diff -r add91fa2691a -r cb52dd180d36 scripts/sparse/spy.m --- a/scripts/sparse/spy.m Wed Oct 12 20:06:12 2011 -0400 +++ b/scripts/sparse/spy.m Wed Oct 12 20:36:19 2011 -0500 @@ -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