changeset 23260:589e4e4548e1

__gnuplot_draw_axes__.m: Temporary fix for legend (bug #50496). * __gnuplot_draw_axes__.m: Temporarily restore hidden/deprecated graphics object property "interpreter".
author Rik <rik@octave.org>
date Fri, 10 Mar 2017 15:30:42 -0800
parents abb9d0cfdf2f
children be761cce7de0
files scripts/plot/util/private/__gnuplot_draw_axes__.m
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/util/private/__gnuplot_draw_axes__.m	Fri Mar 10 21:47:20 2017 +0100
+++ b/scripts/plot/util/private/__gnuplot_draw_axes__.m	Fri Mar 10 15:30:42 2017 -0800
@@ -505,6 +505,16 @@
 
     obj = get (h_obj);
 
+    ## FIXME: Temporary workaround to add hidden interpreter property back.
+    ##        Delete when bug #50496 is fixed.
+    wstate = warning ("query", "Octave:deprecated-property");
+    unwind_protect 
+      warning ("off", "Octave:deprecated-property");
+      obj.interpreter = get (h_obj, "interpreter");
+    unwind_protect_cleanup
+      warning (wstate);
+    end_unwind_protect
+
     if (isfield (obj, "xdata"))
       obj.xdata = double (obj.xdata);
     endif