I have an issue about a label which is consisted of a variable name [Omega]BD and a numerical value associated.
Firstly, I put the BD
subscript to \[Omega]
. It seems to work.
Secondly, I tried to concatenate all the label with :
PlotLabel -> Subscript[\[Omega], BD] <> "=" <> ToString[\[Omega]BD]
and insert it like this in ListLinePlot
:
pl = ListLinePlot[{ScaleFactorPast,ScaleFactorFuture},PlotStyle->{Blue,Blue},Frame->True,FrameLabel->{"t","a(t)"},LabelStyle->{FontSize->20,FontFamily->"Helvetica",Black,Bold},PlotRange->All, ImageSize->{600},Epilog->{Style[Text["Now",{0,1.4}],24],PointSize[.02],Point[{0, 1}]}, PlotLabel -> Subscript[\[Omega], BD] <> "=" <> ToString[\[Omega]BD]];
But the concatenation is badly done, here is the result :
This is not the right order : I would like to print : omega_BD = 4.9
and not =4.9 omega_BD
Where is the error ?
Row[{Subscript[\[Omega], BD], "=", \[Omega]BD}]
because Subscript is not a string. $\endgroup$StringForm
, e.g.,PlotLabel -> StringForm["`` = ``", Subscript[\[Omega], BD], NumberForm[\[Omega]BD, {3, 1}]]
$\endgroup$