I’m trying to recreate a plot I made in Python (attached) using PyPlot in Julia.
I can’t seem to get the tick font and the x- and y- label fonts to match the ones in Python (Computer Modern I presume).
Here are the RC settings:
rcParams = PyPlot.PyDict(PyPlot.matplotlib."rcParams")
rcParams["text.usetex"] = [true];
rcParams["mathtext.fontset"] = "cm";
I tried setting usetex to false but it doesn’t make a difference.
I also tried these settings
PyPlot.matplotlib[:rc]("mathtext",fontset="cm") #computer modern font
PyPlot.matplotlib[:rc]("font",family="serif",size=12)
but that doesn’t make a difference.
Any idea how to recreate the fonts on the Python plot using PyPlot?
My Python Matplotlib settings are as follows:
plt.rc('text', usetex=True)
plt.rcParams['text.latex.preamble']=[r"\usepackage{amsmath}"]