I need to use a sub/superscript to label the x-axis variable on the horizontal axis of my plot.
Mathematica returns the variable as italicized, but only the $x^2$ needs to be italicized, but not the subscript $g$.
I tried using both Subsuperscript and with the control+6 and _, but both yielded the same results.
Code:
ListPlot[{1, 4, 5}, Frame -> True,
FrameLabel -> (
{"\!\(\*SuperscriptBox[SubscriptBox[\(x\), \(g\)], \ \(2\)]\)",
"y"
})]
Corresponding plot: