MATLAB Answers

Jordan
2

How to get 2014b to render figures in retina resolution

Asked by Jordan
on 8 Oct 2014
Latest activity Answered by Chris Li
on 5 May 2015
2014b finally updates MATLAB to work with computers that have been out since 2011, but figures themselves, or at least subplots of bar() and plot() don't render in retina resolution. They're all fuzzy! Is there some parameter I need to send to figure or plot or something to get it to look decent?

  0 Comments

Sign in to comment.

4 Answers

Answer by Kelly Kearney
on 8 Oct 2014

Sorry, can't help with the problem, but I'm surprised that you seem to be implying that 2014b is retina-display compatible.
On my retina-display MacBook Pro, running OS X 10.9.3 (Mavericks), I still don't see proper resolution for any part of the Matlab desktop. Did you make Java modifications, as in previous versions, or did the resolution work for you out of the box?

  2 Comments

Worked for me just fine, but I have 8u20 installed as well, alongside the system default, but I did not change the MATLAB_JAVA environment variable, like I had to in 2014a.
I should clarify that my issue with the main desktop in 2014b seems to have been related to some holdover stuff from 2014b beta. I deleted that and reinstalled 2014b, and now the main desktop renders properly on the Retina screen. The figures are still low-res, as the OP states.

Sign in to comment.


Answer by Jeffrey
on 8 Oct 2014

I'm getting the same results—text in the command window (finally!) looks readable, but anything in the plots is still not rendering correctly.
I messed with the GraphicsSmoothing property on the plot, which does flip on and off anti-aliasing, but clearly assumes an incorrect (lower) dpi.

  2 Comments

I also tried changed some of the figure properties, and it didn't help.
Same here. I've also noticed that my plot lines look fuzzy. Antialiasing seems to be turned on, but the smoothing pixels (the grey pixels in black lines) are much larger than my screen pixels.
I'm running 2014b on a Macbook Pro Retina 15" / NVIDIA GeForce GT 650M.
According to http://support.apple.com/kb/HT5942 I should have OpenGL 4.1, but when I run "opengl info" in MATLAB, I get
Version: '2.1 NVIDIA-8.26.28 310.40.55b01'. Wonder if that's related. MATLAB documentation says OpenGL 3.0 is required for line smoothing.

Sign in to comment.


Answer by Alexander on 13 Nov 2014

Did anyone found a solution for it?

  1 Comment

Nope. One of the things that worked in Mathematica in the past was to increase the DPI of the figure, but I can't figure out how to do that in MATLAB.

Sign in to comment.


Answer by Chris Li
on 5 May 2015

i tried to enlarge the figures, so at least they look fine when exported into pdfs, anyone else has a better solution?

  0 Comments

Sign in to comment.