changeset 28738:e93ad0cfd9bd

maint: merge stable to default.
author Rik <rik@octave.org>
date Mon, 14 Sep 2020 09:18:10 -0700
parents 5d4b400e4b66 (current diff) f98fd55b9557 (diff)
children 3eb2fab71028
files scripts/plot/appearance/legend.m
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/appearance/legend.m	Mon Sep 14 13:55:45 2020 +0200
+++ b/scripts/plot/appearance/legend.m	Mon Sep 14 09:18:10 2020 -0700
@@ -2050,8 +2050,9 @@
 %!testif HAVE_FREETYPE <*40333>
 %! hf = figure ("visible", "off");
 %! unwind_protect
-%!   axes ("units", "normalized");
-%!   plot (1:10);
+%!   hax = axes ("units", "normalized", "fontsize", 10);
+%!   hold on;  # preserve properties of hax in call to plot()
+%!   plot (hax, 1:10);
 %!   hl = legend ("Legend Text", "units", "normalized");
 %!   pos = get (gca, "position");
 %!   set (hf, "position", [0, 0, 200, 200]);