PyPlot: how to include a variable in a title

You want PyPlot.title("Plot of the $(i)th eigenfunction").

This has nothing to do with PyPlot specifically. This is how you do string interpolation in Julia.

3 Likes