Reputation: 303
Consider the following toy example:
sysuse sp500, clear
keep in 1/5
graph twoway (connected close date),xlabel(14977(1)14983, labsize(vsmall) nogextend)
The produced graph has data points, ticks and x-axis
labels on the same vertical line.
Instead, I would like the labels to appear in between the ticks. How can I do this?
Upvotes: 0
Views: 707
Reputation:
Here is one way to do this:
sysuse sp500, clear
keep in 1/5
graph twoway (connected close date), xtick(14977(2)14983, tlength(*1.5)) ///
xlabel(14977.5(2)14983.5, labsize(small) nogextend notick) xtitle("")
For full details see:
Upvotes: 2