Mercurial > octave
changeset 28681:f1dcb77ca6ff stable
maint: Use double quotes when getting/setting graphic properties per Octave convention.
* scripts/plot/appearance/legend.m,
scripts/plot/util/copyobj.m: Replace ' with " around graphic property names.
author | Rik <rik@octave.org> |
---|---|
date | Thu, 03 Sep 2020 15:11:12 -0700 |
parents | 9117c746de0c |
children | b245bcfa1736 22a85c6c1de7 |
files | scripts/plot/appearance/legend.m scripts/plot/util/copyobj.m |
diffstat | 2 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/appearance/legend.m Thu Sep 03 16:43:33 2020 -0400 +++ b/scripts/plot/appearance/legend.m Thu Sep 03 15:11:12 2020 -0700 @@ -2025,9 +2025,9 @@ %! plot (1:10); %! hl = legend ("Legend Text", "units", "normalized"); %! title ({'Multi-line', 'titles', 'are a', 'problem'}); -%! pos = get (gca, 'position'); +%! pos = get (gca, "position"); %! axtop = sum (pos(2:2:4)); -%! pos = get (hl, 'position'); +%! pos = get (hl, "position"); %! legtop = sum (pos(2:2:4)); %! assert (legtop < axtop); %! unwind_protect_cleanup @@ -2040,10 +2040,10 @@ %! axes ("units", "normalized"); %! plot (1:10); %! hl = legend ("Legend Text", "units", "normalized"); -%! pos = get (gca, 'position'); -%! set (hf, 'position', [0, 0, 200, 200]); -%! set (hl, 'fontsize', 20); -%! assert (get (gca, 'position'), pos, 2*eps); +%! pos = get (gca, "position"); +%! set (hf, "position", [0, 0, 200, 200]); +%! set (hl, "fontsize", 20); +%! assert (get (gca, "position"), pos, 2*eps); %! unwind_protect_cleanup %! close (hf); %! end_unwind_protect
--- a/scripts/plot/util/copyobj.m Thu Sep 03 16:43:33 2020 -0400 +++ b/scripts/plot/util/copyobj.m Thu Sep 03 15:11:12 2020 -0700 @@ -117,7 +117,7 @@ ## Absurd number of drawnow() function calls in demos is due to problem -## with FLTK backend which is not respecting the set ('position') call. +## with FLTK backend which is not respecting the set ("position") call. %!demo %! hobj = clf;