comparison 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
comparison
equal deleted inserted replaced
10914:c0434971d0a8 10915:2a25f282e965
161 161
162 function eps_drawnow (opts, epsfile, gp_opts) 162 function eps_drawnow (opts, epsfile, gp_opts)
163 [h, fontsize] = get_figure_text_objs (opts); 163 [h, fontsize] = get_figure_text_objs (opts);
164 unwind_protect 164 unwind_protect
165 for n = 1:numel(h) 165 for n = 1:numel(h)
166 set (h, "fontsize", 2 * fontsize{n}); 166 set (h(n), "fontsize", 2 * fontsize{n});
167 endfor 167 endfor
168 local_drawnow (sprintf ("postscript eps %s", gp_opts), epsfile, opts); 168 local_drawnow (sprintf ("postscript eps %s", gp_opts), epsfile, opts);
169 if (opts.tight_flag) 169 if (opts.tight_flag)
170 __tight_eps_bbox__ (opts, epsfile); 170 __tight_eps_bbox__ (opts, epsfile);
171 endif 171 endif
172 unwind_protect_cleanup 172 unwind_protect_cleanup
173 for n = 1:numel(h) 173 for n = 1:numel(h)
174 set (h, "fontsize", fontsize{n}); 174 set (h(n), "fontsize", fontsize{n});
175 endfor 175 endfor
176 end_unwind_protect 176 end_unwind_protect
177 endfunction 177 endfunction
178 178
179 function local_drawnow (term, file, opts) 179 function local_drawnow (term, file, opts)