Search code examples
gnuplotglow

Glowing (neon) effect in gnuplot


I want to reproduce this effect in gnuplot:

neon effect

How can I achive it? If it can't be done, what software can I use to reproduce it?


Solution

  • Using a 2d kernel for every pixel can be done inside gnuplot. That way, more dense accumulations get brighter than single pixels. Check show palette rgbformulae and the respective chapter in the help to change the colours.

      set term wxt size 300,300 background rgb 0
      set view map
      set samp 140                                       
      set dgrid3d 180,180, gauss kdensity2d 0.2,0.2   
      set palette rgbform 4,4,3   
      splot "+" us 1:(sin($1/3)**2*20):(1)  with pm3d notitle