changeset 23822:9401e88f63cf

maint: Periodic merge of stable to default.
author Rik <rik@octave.org>
date Tue, 01 Aug 2017 17:05:49 -0700
parents 1a08d0ac510f (current diff) 5b5b021b1476 (diff)
children ff2c2f2f6702
files doc/interpreter/contributors.in scripts/plot/util/private/__gnuplot_draw_axes__.m
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/doc/interpreter/contributors.in	Tue Aug 01 15:38:34 2017 -0400
+++ b/doc/interpreter/contributors.in	Tue Aug 01 17:05:49 2017 -0700
@@ -300,6 +300,7 @@
 Jef Poskanzer
 Francesco Potortì
 Konstantinos Poulios
+Tejaswi D. Prakash
 Jarno Rajahalme
 Eduardo Ramos
 Pooja Rao
--- a/scripts/plot/util/private/__gnuplot_draw_axes__.m	Tue Aug 01 15:38:34 2017 -0400
+++ b/scripts/plot/util/private/__gnuplot_draw_axes__.m	Tue Aug 01 17:05:49 2017 -0700
@@ -1560,7 +1560,8 @@
              sidx_major, sidx_minor);
   endif
 
-  if (! isempty (hlgnd) && ! isempty (hlgnd.children)
+  if (! isempty (hlgnd) && strcmp (hlgnd.visible, "on")
+      && ! isempty (hlgnd.children)
       && any (strcmp (get (hlgnd.children, "visible"), "on")))
     if (strcmp (hlgnd.box, "on"))
       box = "box";