LaTeX interpreter but sans-serif font on figures
33 views (last 30 days)
On LaTeX I often use the
font when I want to have a clean, sans-serif font both in the text and in the mathematical formula I write.
In order to have an homogeneous result between my figures and the text, I would like the text in my figures (labels, axis ticks, title, annotations...) to be as well in this font.
Unfortunately so far on Matlab, when using the LaTeX interpreter, only the default font is available. I would like to be able to write both text and mathematical formulas in a sans-serif font (and the same for both text and math) on the figures I plot.
Is it possible?
I am on Mac OS 10.14.1 (Matlab 2018a) and also on Ubuntu 18.10 (Matlab 2018b).
Thank you for your help!
Prakhar Jain on 16 Nov 2018
In order to change font for any text object you just need to set the 'Interpreter' property to 'latex'. As shown below:
If you want to have tick labels also follow link below:
Also, there are files available for the same. This is one of them.
Hope this helps.