code: def _horizontal_segment(old_offs, new_offs, spacing, diameter):
      '''Vertices of a horizontal rectangle
      '''
      return np.array(((old_offs[0], old_offs[1] + spacing[1]),
                       (new_offs[0], old_offs[1] + spacing[1]),
                       (new_offs[0], old_offs[1] + spacing[1] - diameter),
                       (old_offs[0], old_offs[1] + spacing[1] - diameter))f _horizontal_segment(old_offs, new_offs, spacing, diameter):
      '''Vertices of a horizontal rectangle
      '''
      return np.array(((old_offs[0], old_offs[1] + spacing[1]),
                       (new_offs[0], old_offs[1] + spacing[1]),
                       (new_offs[0], old_offs[1] + spacing[1] - diameter),
                       (old_offs[0], old_offs[1] + spacing[1] - diameter)))
docs: Vertices of a horizontal rectangle