diff scripts/plot/__gnuplot_print__.m @ 10915:2a25f282e965

__gnuplot_print__.m: Properly restore fontsize after eps output.
author Ben Abbott <bpabbott@mac.com>
date Fri, 27 Aug 2010 07:35:24 -0400
parents dd6b90f44ae5
children ee9d74048827
line wrap: on
line diff
--- a/scripts/plot/__gnuplot_print__.m
+++ b/scripts/plot/__gnuplot_print__.m
@@ -163,7 +163,7 @@
   [h, fontsize] = get_figure_text_objs (opts);
   unwind_protect
     for n = 1:numel(h)
-      set (h, "fontsize", 2 * fontsize{n});
+      set (h(n), "fontsize", 2 * fontsize{n});
     endfor
     local_drawnow (sprintf ("postscript eps %s", gp_opts), epsfile, opts);
     if (opts.tight_flag)
@@ -171,7 +171,7 @@
     endif
   unwind_protect_cleanup
     for n = 1:numel(h)
-      set (h, "fontsize", fontsize{n});
+      set (h(n), "fontsize", fontsize{n});
     endfor
   end_unwind_protect
 endfunction