changed the x-axis range to avoid the truncation at the margin