# set terminal canvas rounded size 600,400 enhanced fsize 10 lw 1.6 fontscale 1 name "sectors_2" jsdir "." # set output 'sectors.2.js' unset border set angles degrees set theta clockwise top unset key set view map scale 1 set size ratio -1 1,1 unset xtics unset ytics unset ztics unset rtics set title "Polar heatmap composed of sectors\npositioned on a cartesian x/y plane" set xrange [ -12.0000 : 12.0000 ] noreverse nowriteback set x2range [ * : * ] noreverse writeback set yrange [ -12.0000 : 12.0000 ] noreverse nowriteback set y2range [ * : * ] noreverse writeback set zrange [ * : * ] noreverse writeback set cbrange [ * : * ] noreverse writeback set rrange [ * : * ] noreverse writeback set palette positive nops_allcF maxcolors 0 gamma 1.5 viridis set colorbox user set colorbox vertical origin screen 0.85, 0.25 size screen 0.05, 0.5 front noinvert bdefault f(t,r) = r*cos(t+20*r)**2 array data[1] = [] rmax = 10 dr = 0.5 tmax = 180 dt = 10 ## Last datafile plotted: "$data" plot $data using 1:2:(dt):(dr):(0.5):(0):(f($1+dt/2,$2+dr/2)) with sectors fc palette fill solid, $data using (-$1):2:(-dt):(dr):(-0.5):(0):(f($1+dt/2,$2+dr/2)) with sectors fc palette fill solid