Just use string interpolation (this is a Julia thing, not specific to
PyPlot).

title("\pi = $pi")


On Fri, May 6, 2016 at 11:19 AM, <[email protected]> wrote:

> I tried my best to search answers to my following quick questions in this
> group and PyPlot's site, though I trust that my questions are just very
> basic ones:
>
> 1. How to display the value of a variable in the title of a plot? In
> matlab, I do the following to show the value of pi in the title:
>
> title(['\pi = ' num2str(pi)])
>
> Can anyone teach me on how to do this in PyPlot?
>
> 2. Is there a counterpart of the `shg` command in PyPlot to pop the
> recent figures to the front?
>
> Thanks!!
>
>
>
>
>

Reply via email to