In the past, add reference lines to a plot (e.g. the mean value) Origin calculates the mean value for the whole dataset. Now a new option Use Data within Axis Scale Range for Calculated Values is added in Axis dialog’s Reference Lines tab, under Alternate Fill option. When it’s enable, reference line operation will just consider the data in the axis range.