title: Raster scan pattern python
body: <p>I am trying to create a list of xy positions that represent a raster scan pattern like below:</p>
  
  <p><img src="https://i.stack.imgur.com/he83P.jpg" alt="enter image description here"></p>
  
  <p>Simply put I am using nested loops and if else statements but it is getting messy. Is there a simple way generate a list of positions with a fixed step size?</p>