Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Greek letters in Graph not on line with other characters

    Hi,

    I am plotting a graph in Stata. My code looks like this:

    Code:
    twoway (tsline positive_intercept) (tsline negative_intercept) (tsline MPP), ytitle(Prices per Earnings) ttitle(Time) title("Prices per Earnings and Alpha over time") legend(order(1 "  {&alpha}/X + {&beta}" 3 "Marginal Propensity to Price ({&beta})" 2 "- {&alpha}/X + {&beta}"))
    My problem is that in the legend of the three lines the greek letter "alpha" is not written on the same line/the same height as the normal/latin letter "X". Instead the alpha is much lower than the X, which makes the legend of my graph look bad.

    Any suggestions how I can fix that?

    Thanks in advance!
    Timo

  • #2
    You should expect the default behavior because the Greek letter α is lower case and X is upper case. The upper case representation of α is written in the same way as the letter "A". That aside, specifying a fixed width font is one way to address your issue.

    Code:
    {stMono}{&alpha}/X + {&beta}

    Comment

    Working...
    X