How to enforce Multiline in NodeLabel Graph plot using 'tex' Interpreter

4 views (last 30 days)
Hi,
I just realized that a graph plot that has nodelabels rendered using 'tex' interpreter will display the NodeLabel in a single line if it is shorter than 116 characters, even if it contains newline chars on R2018b.
If the NodeLabel is longer than that, it will correctly display a multiline NodeLabel.
What can I do to enforce short multiline NodeLabels using 'tex' interpreter?
best,
Thomas
  2 Comments
Thomas Emmert
Thomas Emmert on 3 Sep 2020
I just realized it is not because of the length.
If the label does not contain a tex syntax sign (like underscore for subscript), the tex interpreter is not invoked (even though it is enforced by the 'interpreter' option). Is this a bug?
Thomas Emmert
Thomas Emmert on 3 Sep 2020
Repectively the 'none' Interpreter does not evaluate newline characters. This might be a bug as well.

Sign in to comment.

Answers (0)

Categories

Find more on Graphics Object Properties 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!