# HG changeset patch # User ederag # Date 1444122430 -7200 # Node ID af5591ef9790fd0466c11c8fd4fcf7ec5c86a4e7 # Parent 5d31cd795c213dd754d7cc8d3e684931bc877a38 __gnuplot_drawnow__.m: Use "screenpixelsperinch" instead of constant value (bug #46122). diff --git a/scripts/plot/util/__gnuplot_drawnow__.m b/scripts/plot/util/__gnuplot_drawnow__.m --- a/scripts/plot/util/__gnuplot_drawnow__.m +++ b/scripts/plot/util/__gnuplot_drawnow__.m @@ -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", ...