Hexbin

The following code:

import gr
import math, random

let n = 100000
var x = newSeq[float](n)
var y = newSeq[float](n)
for i in 0..<n:
  x[i] = rand(1.0)
  y[i] = rand(1.0)  

hexbin(x,y)

discard readLine(stdin)
grm_finalize()

creates the following window:

Hexbin