Announcement

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

  • Make zero line thicker

    Hi everyone,

    I plotted some figures in Stata as below. I wonder if there's any command or option to make the zero line thicker so that it looks more obvious.

    Thanks and look forward to your reply.

    Click image for larger version

Name:	iScreen Shoter - 2022-12-19 15:09:37.780.jpg
Views:	1
Size:	298.4 KB
ID:	1694160

  • #2
    Are you talking about the gridlines or the added dashed line? See

    Code:
    help line_options
    and the -lwidth()- option in particular.

    Comment


    • #3
      Originally posted by Andrew Musau View Post
      Are you talking about the gridlines or the added dashed line? See

      Code:
      help line_options
      and the -lwidth()- option in particular.
      Hi Andrew,

      I'm talking about the gridlines. Thanks for your reply. Let me check

      Comment


      • #4
        You can affect the rendition of all gridlines. However, if you just need to highlight one, just add an extra line with gridline properties.

        Code:
        webuse grunfeld, clear
        set scheme s1mono
        line invest year if company==1, ylab(, grid glwidth(vthick))
        Click image for larger version

Name:	Graph.png
Views:	1
Size:	22.1 KB
ID:	1694172



        Code:
        help axis_label_options
        for more options.

        Comment


        • #5
          Originally posted by Andrew Musau View Post
          You can affect the rendition of all gridlines. However, if you just need to highlight one, just add an extra line with gridline properties.

          Code:
          webuse grunfeld, clear
          set scheme s1mono
          line invest year if company==1, ylab(, grid glwidth(vthick))
          [ATTACH=CONFIG]n1694172[/ATTACH]


          Code:
          help axis_label_options
          for more options.
          Thanks, Andrew! It really helps a lot!

          Comment

          Working...
          X