title: Flattened Point Cloud to Image
body: <p>I have a flattened point cloud (x,y) that I have displayed in a scatter plot (just 10 points for simplicity sake):</p>
  
  <p><a href="https://i.stack.imgur.com/4Rlii.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4Rlii.png" alt="enter image description here"></a></p>
  
  <p>Here are the x and y values:</p>
  
  <pre><code>x_data = [2.36412072, 2.3787694,  2.39039516, 2.40705276, 3.25796771, 3.26817608, 3.27696705, 3.28460264, 3.28830409, 3.29867196]
  y_data = [5.97259283, 5.97819757, 5.9762435,  5.98669958, 5.79369593, 5.78980064, 5.78343678, 5.77508879, 5.75993538, 5.75646544]
  </code></pre>
  
  <p>Each of these points have a pixel value associated with them. How would I go about creating an IMAGE that has the same dimensions as the scatter plot, but with the points displaying lets say black, and all the rest of the space be white.
  Ultimately this will be for 100k+ points. The more points used the clearer the image.</p>
  
  <p>Any help would greatly be apprecaited.</p>