Wrong screen size for Retina display in Matlab

I am using Matlab on my MacBook Pro with Retina display. Using get(0,'ScreenSize')

, we get

ans =

       1           1        1440         900

      

instead of 1 1 2880 1800

. Is there a way to work with the correct dimensions?

+3


source to share


1 answer


No, 1440-by-900 is probably the correct effective value for your screen resolution. This is the value that the OS tells applications and does not match the number of pixels (sometimes called "native resolution"). However, apps should also check if the display supports HiDPI (aka Retina) mode . In your case, each "retina pixel" consists of a 2 by 2 set of original pixels (which in turn have RGB subpixels). Applications that are "Retina-aware" can then display specific graphics (such as images and videos) at full native resolution in areas of the screen. More information, perhaps more precisely formulated, can be found in this article .

There are third-party solutions to run OS X at its own resolution (like SwitchResX and the methods discussed here ), but this of course makes everything, including the UI, ridiculously tiny. If you are using one of these, Matlab should report its resolution as 2880 by 1800.



I am not aware of any Matlab options, properties, or functions that actually take advantage of the Retina display. This means that, for example, when you display an image, each of its pixels is rendered as 2-by-2 retinal pixels.

+3


source







All Articles