7
$\begingroup$

In the plot below, the "l" letter in the axes labels looks like number one also the "x" in the numerator and denominator of the x-axis are not the same?

 Plot[{x, Sin[x]/2}, {x, 0, 3}, Frame -> True, 
 FrameLabel -> {"x l/\!\(\*SubscriptBox[\(x\), \(0\)]\)", 
   "G l/\!\(\*SubscriptBox[\(L\), \(0\)]\)"}, ImageSize -> 260, 
 LabelStyle -> {FontSize -> 22, FontFamily -> "Times", , Black, Bold},
  PlotRange -> {0, 0.8}, 
 PlotStyle -> {{Black, Thick}, {Green, Thick}, {Red, Thick}, {Black, 
    Dashed, Thick}, {Blue, Dashed, Thick}}, 
 FrameTicks -> {{{0, 0.2, 0.4, 0.6, 0.8}, 
    None}, {{0, 0.5, 1, 1.5, 2, 2.5, 3}, None}}]

enter image description here

$\endgroup$

1 Answer 1

10
$\begingroup$

You can style the fonts in the front end using the usual shortcuts (e.g. on Windows CTRL+i will give you italic, etc). To prevent the "el" letter from looking like a "1" number, you may want to show it italic.

Plot[{x, Sin[x]/2}, {x, 0, 3},
 Frame -> True, FrameLabel -> {
   Text@Style["x l/\!\(\*SubscriptBox[\(x\), \(0\)]\)", Bold, Italic],
   Text@Style["G \!\(\*StyleBox[\"l\",\nFontSlant->\"Italic\"]\) / \!\(\*SubscriptBox[\(L\), \(0\)]\)", Bold]
 },
 ImageSize -> 260, 
 LabelStyle -> {FontSize -> 22, FontFamily -> "Times", Black, Bold}, 
 PlotRange -> {0, 0.8}, 
 PlotStyle -> {{Black, Thick}, {Green, Thick}, {Red, Thick}, {Black, Dashed, Thick}, {Blue, Dashed, Thick}}, 
 FrameTicks -> {{{0, 0.2, 0.4, 0.6, 0.8}, None}, {{0, 0.5, 1, 1.5, 2, 2.5, 3}, None}}]

Mathematica graphics

$\endgroup$
1
  • $\begingroup$ Thank you very much! it works :-) $\endgroup$
    – MMA13
    Feb 29, 2016 at 0:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.