# HG changeset patch # User Rik # Date 1372355174 25200 # Node ID 804d26cf8e5bcb774c1cf829a7c9f62ae047ed1f # Parent 787de2f144d9c67ec12e3521d3d061da9adf6824 __plt__.m: Plot a point marker for a scalar input such as plot(0,0) (bug #38825). * scripts/plot/private/__plt__.m(__plt2ss__): If no style is specifed then use '.' for marker. diff -r 787de2f144d9 -r 804d26cf8e5b scripts/plot/private/__plt__.m --- a/scripts/plot/private/__plt__.m Wed Jun 26 20:28:52 2013 -0700 +++ b/scripts/plot/private/__plt__.m Thu Jun 27 10:46:14 2013 -0700 @@ -389,14 +389,13 @@ options = options(1); endif - [x_nr, x_nc] = size (x); - [y_nr, y_nc] = size (y); - - if (x_nr == 1 && x_nr == y_nr && x_nc == 1 && x_nc == y_nc) + if (isscalar (x) && isscalar (y)) linestyle = options.linestyle; marker = options.marker; if (isempty (marker) && isempty (linestyle)) - [linestyle, marker] = __next_line_style__ (); + ## If unspecified, marker for a single point is always "." + linestyle = "-"; + marker = "."; endif color = options.color; if (isempty (color))