4

So I've found a solution to using transparencies in Matlab and that is the command

>> opengl software
Warning: Switching to software OpenGL rendering is not supported on the MAC platform 
> In opengl at 76 

This feature isn't allowed in Matlab on Mac OS X. Can someone tell me why and if there is a work around?

2 Answers 2

3

From the documentation: "Note that Macintosh systems do not support software OpenGL." Matlab does have OpenGL hardware rendering, though, and AFAIK any Mac you're likely to use supports hardware OpenGL. Try opengl hardware; if that works, it should do transparencies also.

4
  • That's strange; Apple reckon they do have a software renderer: developer.apple.com/library/mac/#documentation/GraphicsImaging/…
    – trojanfoe
    Aug 24, 2012 at 15:20
  • I guess a software renderer exists, but matlab apparently doesn't use it.
    – Danica
    Aug 24, 2012 at 15:32
  • Yes, but that doesn't work either. I get the same error. The axes are still missing.
    – Griff
    Aug 25, 2012 at 8:38
  • @Griff it's true that this answer doesn't help with using software OpenGL on OSX versions of matlab; but there's unlikely to be a solution outside of getting MathWorks to support it.
    – Danica
    Oct 24, 2012 at 15:25
1

I've had this error as well when using hardware OpenGL rendering on a mac and have been unable to fix it directly. Let me guess: you are trying to display a plot with transparencies, so MATLAB forces OpenGL hardware rendering, but has missing axes and/or titles, labels, etc. You can work around this problem by exporting the figure as a vector graphic. I use plot2svg and then open it up in Illustrator and the plots is exactly as it should be, with correct axes and labels. Hope that helps.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.