Text out goes weird on Figure with underscores
4 views (last 30 days)
Show older comments
Commented: Jason on 18 Sep 2014
Hello, I am trying to output the name of an image file I onto a figure that shows the picture. The name is obtained from and checks out OK in the matlab window.
However, it appears on the figure weird
Im assuming its to do with the underscores - how can I correct it? Thanks
Oleg Komarov on 18 Sep 2014
Edited: Oleg Komarov on 18 Sep 2014
By default the interpreter of text objects is set to 'tex'. Set it to 'none', i.e.
For reference, check the text property Interpreter.
More Answers (1)
Ilham Hardy on 18 Sep 2014
Without adjusting your interpreter setting (keep LaTeX interpreter on), you can use backslash just before the underscore to keep the underscore as underscore and not TeX command of subscript:
Find more on Text Data Preparation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!