title: Pixel coordinates vs Drawing Coordinates
body: <p>In the code snippet below, passing x and y values puts the dot in (y,x) coordinates while the drawing is done in (x,y). What is the correct way to set up the drawing buffer so it's placing pixels and drawing in the same coordinate system?</p>
  
  <pre><code>from PIL import Image, ImageDraw
  
  def visual_test(x, y):
      grid = np.zeros((100, 100, 3), dtype=np.uint8)
      grid[:] = [0, 0, 0]
      grid[x, y] = [255, 0, 0]
      img = Image.fromarray(grid, 'RGB')
      draw = ImageDraw.Draw(img)
      draw.line((x, y, x, y-5), fill=(255,255,255), width=1)
      img.show()
  </code></pre>