Disable TeX text messages in the message bar

What is the fastest way to disable TeX markup from displaying in messages in a waitbar ? I was expecting an option like

 'Interpreter', 'none', ... 
+4
source share
3 answers

The Interpreter property is not available for shapes that I suppose ( waitbar creates a shape object), but you can apply it after a message in the message bar:

 h=waitbar(x,message); set(findall(h,'type','text'),'Interpreter','none'); 

You can also avoid problematic characters, but that would be a lot harder.

+7
source

You can also set the global Tex interpreter to None , this also applies to standby panels.

  set(0, 'DefaulttextInterpreter', 'none'); 
+4
source

Instead of searching for an object, you can directly interpret the interpreter using "dot notation" (available from R2014b), as in the following MWE:

 wb = waitbar(0/10,'My_waitbar_string_with_underscores'); wb.Children.Title.Interpreter = 'none'; for i = 1:10 waitbar(i/10,wb,'My_waitbar_string_with_underscores'); pause(1); end delete(wb); 

What changes the interpreter for the name of the axis, which is placed inside the message panel.

Please note that if you use the Cancel button in the waiting panel, the number of children of the object changes, and you may need to change

 wb.Children.Title.Interpreter 

to

 wb.Children(2).Title.Interpreter 
0
source

Source: https://habr.com/ru/post/1394583/


All Articles