changeset 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 5d31cd795c21
children c6059134f5d3
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	Fri Oct 02 17:44:53 2015 +0200
+++ b/scripts/plot/util/__gnuplot_drawnow__.m	Tue Oct 06 11:07:10 2015 +0200
@@ -185,8 +185,8 @@
                || any (strcmp (term, {"canvas", "emf", "gif", "jpeg", ...
                                       "pbm", "png", "pngcairo", "svg"}))))
           ## Convert to inches
-          gnuplot_pos = gnuplot_pos / 72;
-          gnuplot_size = gnuplot_size / 72;
+          gnuplot_pos = gnuplot_pos / get (0, "screenpixelsperinch");
+          gnuplot_size = gnuplot_size / get (0, "screenpixelsperinch");
         endif
         if (all (gnuplot_size > 0))
           terminals_with_size = {"canvas", "emf", "epslatex", "fig", ...