title: how to plot densely located points as a smooth image?
body: <p>I generated many sample points, and they are clustered by the nature of the generation process. If I scatter plot them, I see blurred edges. But they are supposed to be smooth in theory. Increasing sample size and decreasing point size in the scatter plot improves the quality, but never perfect. I am wondering how to plot these points as an image.</p>
  <pre><code>x = np.linspace(0,6,500)
  y = np.linspace(0,6,500)
  X,Y = np.meshgrid(x,y)
  s = np.sin(X) + np.cos(Y)
  t = np.sin(X) / (np.cos(Y) + 2)
  ST = [(s[i,j], t[i,j]) for i in range(s.shape[0]) for j in range(s.shape[1])]
  plt.scatter(*zip(*ST))
  </code></pre>
  <p><a href="https://i.stack.imgur.com/oNM0n.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oNM0n.png" alt="enter image description here" /></a></p>