title: Gnuplot: Scatter plot and density
body: <p>I have x- and y-data points representing a star cluster. I want to visualize the density using Gnuplot and its scatter function with overlapping points.</p>
  
  <p>I used the following commands:</p>
  
  <pre><code> set style fill transparent solid 0.04 noborder
   set style circle radius 0.01
   plot "data.dat" u 1:2 with circles lc rgb "red"
  </code></pre>
  
  <p>The result:</p>
  
  <p><a href="https://i.stack.imgur.com/531gz.png" rel="noreferrer"><img src="https://i.stack.imgur.com/531gz.png" alt="enter image description here"></a></p>
  
  <p>However I want something like that</p>
  
  <p><a href="https://i.stack.imgur.com/dC5kh.png" rel="noreferrer"><img src="https://i.stack.imgur.com/dC5kh.png" alt="enter image description here"></a></p>
  
  <p>Is that possible in Gnuplot? Any ideas?</p>