Mercurial > octave
changeset 20906:9fe6db1dcc46 stable
Backout rev af5591ef9790.
* scripts/plot/util/__gnuplot_drawnow__.m: When printing, the paper properties
are modified to size all objects to 1 pixel/point. This is needed to support
the design of GL2PS. This is also done for Gnuplot to avoid toolkit specific
code in print.m and __print_parse_opts__.m. Toolkit specific code shoudl be
limited to toolkit specific m-files, i.e.__opengl_print__.m, and
__gnuplot_print__.m. The changeset being backedout is associated with bug
report #46122.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Tue, 15 Dec 2015 10:15:20 -0500 |
parents | ef9b2a88fbb5 |
children | 40e1134ec984 a7ebc9815d71 |
files | scripts/plot/util/__gnuplot_drawnow__.m |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/util/__gnuplot_drawnow__.m Mon Dec 14 12:19:38 2015 +0000 +++ b/scripts/plot/util/__gnuplot_drawnow__.m Tue Dec 15 10:15:20 2015 -0500 @@ -185,8 +185,8 @@ || any (strcmp (term, {"canvas", "emf", "gif", "jpeg", ... "pbm", "png", "pngcairo", "svg"})))) ## Convert to inches - gnuplot_pos = gnuplot_pos / get (0, "screenpixelsperinch"); - gnuplot_size = gnuplot_size / get (0, "screenpixelsperinch"); + gnuplot_pos = gnuplot_pos / 72; + gnuplot_size = gnuplot_size / 72; endif if (all (gnuplot_size > 0)) terminals_with_size = {"canvas", "emf", "epslatex", "fig", ...