Announcement

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

  • How to decrease the label size?

    graph twoway (line avg_emp_fgender yr if gender==1 & ind==1) (line avg_emp_fgender yr if gender==2 & ind==1) (line avg_emp_fgender yr if gender==1 & ind==2) (line avg_emp_fgender yr if gender==2 & ind==2), ytitle(Employment,height(6)) xtitle(Distance from Event Date (Years) ,height(6)) ylabel(-200(100)200) xlabel(-3(1)3) xline(0, lp(-)) legend(label(1 "Retail Trade Male") label(2 "Retail Trade Female") label(3 "Accom. and Food Services Male" ) label(4 "Accom. and Food Services Female")) graphregion(color(white))

    I ran this code and worked great, but the label seems too big. How can I adjust the size of legends?
    Last edited by Jeonghyun Lee; 21 Jan 2020, 10:22.

  • #2
    No data example here and no graph to discuss. so we need to discuss technique with other material. You can run this code, I trust. The labsize() suboption allows control. If that isn't what you want, please post an offending graph and a data example to produce it.

    Code:
    . webuse grunfeld, clear
    
    . line invest year, c(L) ylabel(, labsize(small))
    
    . line invest year, c(L) ylabel(, labsize(vsmall))

    Comment


    • #3
      .

      Comment

      Working...
      X