Announcement

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

  • Remove blank space at the end of a graph

    Hi Statalist!

    I am trying to get a plot of multiple time-series in one graph but I keep getting this blank space at the end of the graph (see the picture below). I am not sure how to get rid of it. My date variable is formatted as %tq and it only goes till 2018q4 so I don't know how Stata is managing to extend the x-axis to 2020q1.

    Click image for larger version

Name:	graph1.png
Views:	1
Size:	130.2 KB
ID:	1515414
    I appreciate your help!
    Last edited by Hasan Isomitdinov; 07 Sep 2019, 01:26.

  • #2
    The default here is 10 quarters between labeled quarters.

    Code:
    . di tq(2007-3)
    190
    
    . di tq(2010-1)
    200
    So you want to fix the end-point.

    Code:
    . di tq(2018-4)
    235
    You do this using the xlabel option.

    Code:
    xlab(190(10)235)

    Comment


    • #3
      Thank you Andrew, it works now.

      Comment

      Working...
      X