I want to produce a plot with matplotlib and use the command
plt.rc('text', usetex=True)
to render the text with LaTeX. I output the file with plt.savefig as a pdf. When I include the above command, I get a nice TeX font but the file size increases by a factor 20 or more, depending on the amount of text in the plot (compared to the output of the same script with plt.rc('text', usetex=True)
commented out).
Is there any way to have TeX rendering without increasing the file size?