Timeline for Variable subscript in AxesLabel [closed]
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 31, 2020 at 11:07 | history | closed |
MarcoB Bob Hanlon Rohit Namjoshi mmal Henrik Schumacher |
Not suitable for this site | |
Dec 30, 2020 at 14:44 | vote | accept | Chris | ||
Dec 29, 2020 at 20:32 | answer | added | Wolfgang123 | timeline score: 0 | |
Dec 29, 2020 at 19:41 | answer | added | m_goldberg | timeline score: 3 | |
Dec 29, 2020 at 18:32 | answer | added | Rudy Potter | timeline score: 0 | |
Dec 29, 2020 at 16:16 | review | Close votes | |||
Dec 31, 2020 at 11:07 | |||||
Dec 29, 2020 at 16:15 | comment | added | Bob Hanlon |
Alternatively, you can use StringForm , e.g., Plot[Evaluate[Log[x^#] & /@ Range[3]], {x, 0, 1}, AxesLabel -> {"x", StringForm["ln(``)", Subscript[y, n]]}, PlotLegends -> Placed[StringForm["n = ``", #] & /@ Range[3], {.7, .4}]]
|
|
Dec 29, 2020 at 15:59 | comment | added | MarcoB |
That's because you are effectively multiplying the strings by the Subscript expression, since they are separated by a space. Use Row[{"ln(", Subscript[y, n], ")"}] instead instead of your "ln(" Subscript[y, n] ")" .
|
|
Dec 29, 2020 at 15:54 | history | asked | Chris | CC BY-SA 4.0 |