In matplotlib 0.90.1, the trigger to render the string with math
formatting is if the string that is ultimately passed to the plotting
engine starts and ends with a '$'.
So to get your expression to work, you would need to do something like:
vlostring="$v_{lo}=%5.2f$" % (vlo)
Does that wor
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Using
vlostring="$v_{lo}$=%5.2f" % (vlo)
doesn't work either.
Dave
David D Clark wrote:
> Hello,
>
> I am trying to create some text on a plot with the following commands:
>
> vlostring="$v_{lo}$="+str(vlo)+" t="+str(vlotime)
> text(vlo,vlotime,
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hello,
I am trying to create some text on a plot with the following commands:
vlostring="$v_{lo}$="+str(vlo)+" t="+str(vlotime)
text(vlo,vlotime,vlostring)
However, the text is rendered literally --
$v_{lo}$=0.3 t=7961.66
instead of nicely formatt