Mercurial > octave-nkf
comparison scripts/plot/__plt2vs__.m @ 8076:bac1061a36bc
Do not call "set" with empty arguments
author | Michael Goffioul |
---|---|
date | Sun, 31 Aug 2008 11:14:20 -0400 |
parents | a028a5960e18 |
children | 79c874fe5100 |
comparison
equal
deleted
inserted
replaced
8075:a028a5960e18 | 8076:bac1061a36bc |
---|---|
59 h = line (x(i), y, "keylabel", tkey, "color", color, | 59 h = line (x(i), y, "keylabel", tkey, "color", color, |
60 "linestyle", options(i).linestyle, | 60 "linestyle", options(i).linestyle, |
61 "marker", options(i).marker, "parent", hg); | 61 "marker", options(i).marker, "parent", hg); |
62 | 62 |
63 __add_line_series__ (h, hg); | 63 __add_line_series__ (h, hg); |
64 set (hg, args{:}); | 64 if (! isempty (args)) |
65 set (hg, args{:}); | |
66 endif | |
65 endfor | 67 endfor |
66 else | 68 else |
67 error ("__plt2vs__: first arg must be vector, second arg must be scalar"); | 69 error ("__plt2vs__: first arg must be vector, second arg must be scalar"); |
68 endif | 70 endif |
69 | 71 |