diff scripts/plot/util/__gnuplot_drawnow__.m @ 20626:5fc798a9b32c

maint: Periodic merge of stable to default.
author Rik <rik@octave.org>
date Fri, 09 Oct 2015 19:28:05 -0700
parents 755ba248fb4a af5591ef9790
children
line wrap: on
line diff
--- a/scripts/plot/util/__gnuplot_drawnow__.m	Fri Oct 09 18:52:58 2015 -0700
+++ b/scripts/plot/util/__gnuplot_drawnow__.m	Fri Oct 09 19:28:05 2015 -0700
@@ -185,8 +185,8 @@
                || any (strcmp (term, {"canvas", "emf", "gif", "jpeg", ...
                                       "pbm", "png", "pngcairo", "svg"}))))
           ## Convert to inches
-          gnuplot_pos /= 72;
-          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", ...