i am using the tex feature to put some greek symbols in some labels of my plots. for example,
rcParams[‘text.usetex’] = True
plot(a, b, ‘o’)
the ‘\Delta’ is rendered correctly but that changes the fonts of the tick labels and of all the text in the labels to tex’s default font (which looks like times new roman). is there a way to use tex only for greek symbols but retain the default sans-serif font of matplotlib for all the other things?
i want all the tick labels and text to be in the default font. for example, in xlabel(’\Delta direction’), it should have the sans-serif font in “direction” but use tex for the \Delta.
is there a way to do this?