# HG changeset patch # User David Bateman # Date 1263502237 -3600 # Node ID b52cba8be2eb3d9da0a2a8ea791a9b56e5942a48 # Parent c146b308739f152035b27f54af09789860259c56 Fix for markerfacecolor and markeredgecolor properties with unfillable markers like '+' diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,8 @@ +2010-01-14 David Bateman + + * plot/__go_draw_axes__.m: Fix for markerfacecolor and + markeredgecolor for unfillable points like '+'. + 2010-01-14 Jaroslav Hajek * io/fileread.m: Add missing semicolon. diff --git a/scripts/plot/__go_draw_axes__.m b/scripts/plot/__go_draw_axes__.m --- a/scripts/plot/__go_draw_axes__.m +++ b/scripts/plot/__go_draw_axes__.m @@ -525,12 +525,8 @@ style = do_linestyle_command (obj, obj.color, data_idx, mono, plot_stream, errbars); - if (isempty (style{1})) - withclause{data_idx} = ''; - else - withclause{data_idx} = sprintf ("with %s linestyle %d", - style{1}, data_idx); - endif + withclause{data_idx} = sprintf ("with %s linestyle %d", + style{1}, data_idx); if (length (style) > 1) data_idx++; @@ -916,8 +912,7 @@ || ! isnumeric (obj.markeredgecolor) || (isnumeric (obj.markeredgecolor) && isequal (color, obj.markeredgecolor)))) - if (! isequal (pt, pt2) && sidx == 1 - && ((length (style) == 5 + if (sidx == 1 && ((length (style) == 5 && strncmp (style, "lines", 5)) || isempty (style))) style = strcat (style, "points"); @@ -1736,7 +1731,7 @@ || ! isnumeric (obj.markeredgecolor) || (isnumeric (obj.markeredgecolor) && isequal (color, obj.markeredgecolor)))) - if (! isequal (pt, pt2) && sidx == 1 && ((length (style {sidx}) == 5 + if (sidx == 1 && ((length (style {sidx}) == 5 && strncmp (style {sidx}, "lines", 5)) || isempty (style {sidx}))) style {sidx} = strcat (style{sidx}, "points"); if (! isempty (pt))