I want to plot a figure with $\LaTeX$ formulas as labels. A simple example looks like the following:
<<MaTeX`
Plot[Sin[x], {x, 0, 2 \[Pi]}, Frame -> True, FrameLabel -> (MaTeX /@ {"x", "\\rm{sin}(x)"})]
However, the labels sin(x)
and x
are too small in the figure for me and I want larger ones. How can I adjust their sizes?
In another case if the label is a figure, like
fig = Plot[Sin[x], {x, 0, 2 \[Pi]}, Frame -> True];
Export["test.pdf", fig];
lab = Import["test.pdf"] // First;
DeleteFile["test.pdf"];
Plot[Sin[x], {x, 0, 2 \[Pi]}, Frame -> True, FrameLabel -> {None, lab}]
Again, how do I adjust the label size?
Plot[Sin[x], {x, 0, 2 \[Pi]}, Frame -> True, FrameLabel -> MaTeX[{"x", "\\sin x"}, FontSize -> 18]]
.\sin x
is better than using\rm
. $\endgroup$