# HG changeset patch # User Ben Abbott # Date 1371824441 -28800 # Node ID 38c1a421f0826234ac11697415348d84a4147564 # Parent 1d1f02e0f6b47b99a8c501952d457c02a9a20772 When no keys are specified and defaults are populated, set have_labels = true. scripts/plot/legend.m: Set have_labals true when the default key labels are populated. diff --git a/scripts/plot/legend.m b/scripts/plot/legend.m --- a/scripts/plot/legend.m +++ b/scripts/plot/legend.m @@ -420,7 +420,9 @@ if (have_labels || ! have_dname) k = nkids; if (! have_labels) - varargin = arrayfun (@(x) sprintf ("data%d", x), [1:nkids]', "uniformoutput", false); + varargin = arrayfun (@(x) sprintf ("data%d", x), [1:nkids]', + "uniformoutput", false); + have_labels = true; nargs = nkids; endif for i = 1 : nargs