Linear pattern

Hi Experts 

How can I make a pattern to both directions of X axis as shown in the snip ?