Mercurial > octave-nkf
comparison scripts/plot/util/__gnuplot_drawnow__.m @ 20602:af5591ef9790 stable
__gnuplot_drawnow__.m: Use "screenpixelsperinch" instead of constant value (bug #46122).
author | ederag <edera@gmx.fr> |
---|---|
date | Tue, 06 Oct 2015 11:07:10 +0200 |
parents | 9fc020886ae9 |
children | 5fc798a9b32c |
comparison
equal
deleted
inserted
replaced
20601:5d31cd795c21 | 20602:af5591ef9790 |
---|---|
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 / 72; | 188 gnuplot_pos = gnuplot_pos / get (0, "screenpixelsperinch"); |
189 gnuplot_size = gnuplot_size / 72; | 189 gnuplot_size = gnuplot_size / get (0, "screenpixelsperinch"); |
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", ... |