Announcement

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

  • Missing gridlines

    I sometimes find that the top or bottom gridline is missing from a Stata graph. I'm attaching an example created with graph combine. All four of the component graphs were created by running twoway connected..., ylabel(-4(1)1).... Yet only the lower right graph has gridlines at every y value from -1 to 4. The upper graphs are missing the top gridline at y=4, and the lower left graph is missing the bottom gridline at y=-1.

    What do you think might be going on?
    Attached Files

  • #2
    Try adding gmax and gmin to the ylabel option:
    Code:
    ylabel(-4(1)1, gmax gmin)

    Comment


    • #3
      Thanks, that worked! But why isn't this the default behavior?

      Comment


      • #4
        Oddly enough, the question of missing gridlines arose again the day after your initial post. In that topic, default behavior is discussed at greater length.

        https://www.statalist.org/forums/for...es-in-boxplots

        Comment

        Working...
        X