octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #49627] Incompatible "screenpixelsperinch" pro


From: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #49627] Incompatible "screenpixelsperinch" property
Date: Sat, 17 Dec 2016 20:35:02 -0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0

URL:
  <http://savannah.gnu.org/bugs/?49627>

                 Summary: Incompatible "screenpixelsperinch" property
                 Project: GNU Octave
            Submitted by: pantxo
            Submitted on: Wed 16 Nov 2016 09:37:41 PM GMT
                Category: Plotting
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

Copying a post from bug #45600:

Matlab seems to have adopted a fixed value of the "screenpixelsperinch"
property (see [1]) for Windows and Mac platforms. Note that this makes this
"pixels" unit device independent (an absolute unit).

The only reason I can see is Matlab has made the (unfortunate?) choice of
fixing the default figure size in pixel units. Having pixels an absolute unit
is thus a way to fix the absolute size of figures across different displays.
This also means that for ML compatibility we should follow the same route.
Another good reason to do so is that, at least for Mac, Qt5 also chose device
independent pixels [2].

The drawback of this approach is that it is not WYSIWYG: a figure onscreen
will never have the expected physical size in inches (which is the default
unit for "paperposition"). There are complaints about this regression on
Matlabcentral [3].

Marking OS "any" even if on linux Matlab and Octave are compatible.

[1] https://fr.mathworks.com/help/matlab/ref/root-properties.html
[2]
http://blog.qt.io/blog/2013/04/25/retina-display-support-for-mac-os-ios-and-x11/
[3] https://fr.mathworks.com/matlabcentral/newsreader/view_thread/344106




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?49627>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]