Announcement

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

  • Size of the Numbers on the Y-Axis Scale of a Graph

    Hello!

    I produced a graph, and the numbers on the Y-Axis (e.g. 100,000; 200,000) are so big that they are all written on top of each other. The scale on the Y-Axis is simply not readable.
    Do you know how I could make the size of these numbers smaller?

    I found information about how to change the size of the axis titles, but I am having a hard time changing the size of the numbers within the Y-Axis scale.
    Any guidance would be more than welcome!

    Thanks in advance!


  • #2
    A change of units to thousands (or thousands of whatever units you are using) is surely one possibility.

    Another is to rotate labels to horizontal.

    Another is to make the labels smaller, but this tends to solve one problem and create another.

    Code:
    help axis label options
    indicates a labsize() suboption.

    Here is a small essay in technique. The default graph is fine really, but it provides a sandbox.

    Code:
    webuse grunfeld, clear
    line mvalue year, c(L)
    line mvalue year, c(L) yla(, ang(h))
    line mvalue year, c(L) yla(, ang(h) labsize(*0.5))
    line mvalue year, c(L) yla(, labsize(*0.5))
    line mvalue year, c(L) yla(0 1000 "1" 2000 "2" 3000 "3" 4000 "4" 5000 "5" 6000 "6") ytitle(thousands)

    Comment


    • #3
      Hi Nick,

      This is very helpful. Thank you so much!

      Comment

      Working...
      X