Mercurial > octave-nkf
comparison scripts/plot/print.m @ 14206:df695e37d404
Make sure "print '-SX,Y' ..." doesn't round down a pixel. Bug # 35307.
The eps output from gnuplot and gl2ps each specify whole numbrer bboxs.
Modify ghostscript's resolution to ensure output size is correct. Also
adjust fontisize to compenstate for resolution change.
* __print_parse_opts__.m: Set ghostscript resolution to 72 to ensure all
bboxs have whole numbers. Add a scalefontsize variable to enable fontsize
to be compensated for change in resolution.
* print.m: Modify fontsize property value to compensate for change in
ghostscript resolution.
* __gnuplot_drawnow__.m: Increase precision for specified canvas size.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Tue, 17 Jan 2012 07:23:36 -0500 |
parents | 72c96de7a403 |
children | ce2b59a6d0e5 |
comparison
equal
deleted
inserted
replaced
14162:969532305835 | 14206:df695e37d404 |
---|---|
367 if (! isempty (opts.fontsize)) | 367 if (! isempty (opts.fontsize)) |
368 if (ischar (opts.fontsize)) | 368 if (ischar (opts.fontsize)) |
369 fontsize = str2double (opts.fontsize); | 369 fontsize = str2double (opts.fontsize); |
370 else | 370 else |
371 fontsize = opts.fontsize; | 371 fontsize = opts.fontsize; |
372 endif | |
373 if (! isempty (opts.scalefontsize) && ! opt.scalefontsize != 1) | |
374 ## This is done to work around the bbox being whole numbers. | |
375 fontsize = fontsize * opts.scalefontsize; | |
372 endif | 376 endif |
373 set (h(ishandle(h)), "fontsize", fontsize); | 377 set (h(ishandle(h)), "fontsize", fontsize); |
374 endif | 378 endif |
375 endif | 379 endif |
376 | 380 |