Hi,
I want to create a two-way line graph with the line restricted between two years value. The problem is the subcommand "if" doesn't work since I want to start in the middle of the year whereas my year variable only contains only integer value of years (2011,2012,2013,...). I want the line to start at decimal values (line 2013.5, 2014.,...), which is in the middle of the interval. Two-way graphs seem to automatically round the year range so that it is contained within an integer value range.

Below is a simple replication example:

Code:
clear 
set obs 10
gen year = _n + 2010
gen value = 2
twoway (line value year if year >= 2013.5 & year <= 2015.5), xlabel(2011(1)2020)

The line is between 2014 and 2016 whereas I want it to between 2013.5 and 2015.5.
Thank you!