How to prevent LATEX tags in MATLAB GUI to become blurry?

In my current MATLAB GUI project, I have two axis objects. The first is used by the uibutton workaround (I do not use GUIDE) to display the LaTeX formula (as far as possible I know that only axis labels are able to use LaTeX, while normal static text fields do not ...). Another axis object is used to actually build the 3D function.

The program performs the following actions:

  • the first axes create a LATEX formula (for example, f (x) =).
  • The user enters the function in the edit box after the LaTeX formula (for example, f (x) = a + b).
  • The user clicks the plot button.
  • The 3D function is displayed in the second axis object.

Problem:

Once the 3D function is built, the beautifully designed LaTeX-formular will become clear. Is there any way to prevent this?

Problemm demonstration

http://i42.tinypic.com/348pq2u.png (see image to demonstrate the problem)

+8
user-interface matlab uibutton latex
source share
1 answer

Check the shape properties before and after drawing 3D graphics

get(gcf, 'renderer') 

My assumption is that building a 3D function changes the default renderer ("artists") to another (probably OpenGL). The Latex rendering matrix doesn't look good with zbuffer or OpenGL (they produce bitmaps, not linear art).

You may be stuck if artists cannot display your 3D graphics correctly, but you can try to force it by manually setting the render to artists

 set(gcf, 'renderer', 'painters') 
+2
source share

All Articles