Mercurial > octave
diff scripts/plot/appearance/legend.m @ 27719:88350aacd800
legend.m: Tweaks to cset 39ac47fdcda2.
* legend.m: Restore comment character '#' lost on first line of file.
* legend.m (update_edgecolor_cb): Call get() just once on legend handle
for performance.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 19 Nov 2019 08:53:02 -0800 |
parents | 39ac47fdcda2 |
children | 6eb7491a8794 |
line wrap: on
line diff
--- a/scripts/plot/appearance/legend.m Tue Nov 19 16:40:11 2019 +0100 +++ b/scripts/plot/appearance/legend.m Tue Nov 19 08:53:02 2019 -0800 @@ -1,4 +1,4 @@ -# Copyright (C) 2010-2019 David Bateman +## Copyright (C) 2010-2019 David Bateman ## ## This file is part of Octave. ## @@ -322,8 +322,8 @@ function update_edgecolor_cb (hl) - set (hl, "xcolor", get (hl, "edgecolor"), ... - "ycolor", get (hl, "edgecolor")) + ecolor = get (hl, "edgecolor"); + set (hl, "xcolor", ecolor, "ycolor", ecolor); endfunction