Announcement

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

  • Have graph display axis 'tick' labels horizontally

    I have attached a photo of my problem. Focus on the bottom left graph. See how the right y-axis labels got all mushed together? Is there a way to fix this easily? I am using the command --twoway--

  • #2
    Cody,

    Check out the twoway option ylabel(), which has a sub-option angle() that controls the angle of the labels. I think you want ylabel(,angle(0)).

    Regards,
    Joe

    Comment


    • #3
      Hey Joe,

      So that somewhat worked; however, it only changed the left y-axis labels. I tried putting the line ylabel(,angle(0)) in all sorts of places (sub options of each line, options of overall two-way) with no luck. Any other thoughts?

      Thanks!

      Comment


      • #4
        Cody,

        Yes, it is confusing; I don't do multiple axes much, so I needed to experiment to get it right. Try something like:

        Code:
        twoway (scatter y1 x, ylabel(,angle(0) axis(1))) (scatter y2 x, yaxis(2) ylabel(,angle(0) axis(2)))
        Regards,
        Joe

        Comment

        Working...
        X