Mercurial > octave
comparison scripts/plot/util/__gnuplot_drawnow__.m @ 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 | af5591ef9790 |
children | 40e1134ec984 8990b8c4f00a |
comparison
equal
deleted
inserted
replaced
20890:ef9b2a88fbb5 | 20906:9fe6db1dcc46 |
---|---|
183 gnuplot_size = position_in_pixels(3:4); | 183 gnuplot_size = position_in_pixels(3:4); |
184 if (! (output_to_screen (term) | 184 if (! (output_to_screen (term) |
185 || any (strcmp (term, {"canvas", "emf", "gif", "jpeg", ... | 185 || any (strcmp (term, {"canvas", "emf", "gif", "jpeg", ... |
186 "pbm", "png", "pngcairo", "svg"})))) | 186 "pbm", "png", "pngcairo", "svg"})))) |
187 ## Convert to inches | 187 ## Convert to inches |
188 gnuplot_pos = gnuplot_pos / get (0, "screenpixelsperinch"); | 188 gnuplot_pos = gnuplot_pos / 72; |
189 gnuplot_size = gnuplot_size / get (0, "screenpixelsperinch"); | 189 gnuplot_size = gnuplot_size / 72; |
190 endif | 190 endif |
191 if (all (gnuplot_size > 0)) | 191 if (all (gnuplot_size > 0)) |
192 terminals_with_size = {"canvas", "emf", "epslatex", "fig", ... | 192 terminals_with_size = {"canvas", "emf", "epslatex", "fig", ... |
193 "gif", "jpeg", "latex", "pbm", "pdf", ... | 193 "gif", "jpeg", "latex", "pbm", "pdf", ... |
194 "pdfcairo", "postscript", "png", ... | 194 "pdfcairo", "postscript", "png", ... |