Combining LaTeX with variables in PyPlot title

fusion809
Wed, 10 Jun 2020 14:23:37 +0000
New to Julia

This is somewhat similar to PyPlot: how to include a variable in a title, but with the added complication of including LaTeX in the title too. See I have this code:

PyPlot.title(L"Plot of the 1st eigenfunction, corresponding to $\lambda=$ $(eigenvalue_approx[1])")

and as you can probably guess, I want lambda to be rendered as the appropriate lower case Greek letter and the first element of eigenvalue_approx to be displayed after the equal sign. But currently I just get:

. Any ideas how to get around this issue?

10 posts - 5 participants