How to turn off text interpreter when plotting timeseries objects
57 views (last 30 days)
I am plotting timeseries objects using plot.
My variable names include underscores (e.g. 'ABC_DEF') and I do not want these interpreted as LATEX (no subscripts).
It works fine on a single plot:
ts = timeseries((1:10)',randn(10,1),'Name','ABC_DEF');
But when you do subplots the interpreter seems to be set to LaTex:
This answer explains how to change the interpreter for individual text commands but I can't find anything on this for timeseries plots.
Stephen23 on 25 Oct 2020
Edited: Stephen23 on 25 Oct 2020
One approach would be to set the interpreter for the entire figure before plotting (and reset it again afterwards):
fgh = figure(..);
... create axes and plot data
Depending on the version you are using you might also want to set the axes' TickLabelInterpreter as well.