hits = array([1, 24, 14, 16, 6, 11, 8, 23, 15, 16, 15, 9, 20, 1, 3, 29, 4, 
    32, 22, 7, 26, 26, 35, 23, 7, 6, 11, 9, 18, 17, 22, 19, 34, 1, 36, 3, 
    31, 10, 22, 11, 21, 18, 29, 3, 6, 32, 15, 30, 27], dtype=int32)
centers = array([[1.5, 0.8660254], [2.5, 0.8660254], [3.5, 0.8660254], [4.5,
    0.8660254], [5.5, 0.8660254], [6.5, 0.8660254], [1.0, 1.73205081], [2.0,
    1.73205081], [3.0, 1.73205081], [4.0, 1.73205081], [5.0, 1.73205081], [
    6.0, 1.73205081], [1.5, 2.59807621], [2.5, 2.59807621], [3.5, 
    2.59807621], [4.5, 2.59807621], [5.5, 2.59807621], [6.5, 2.59807621], [
    1.0, 3.46410162], [2.0, 3.46410162], [3.0, 3.46410162], [4.0, 
    3.46410162], [5.0, 3.46410162], [6.0, 3.46410162], [1.5, 4.33012702], [
    2.5, 4.33012702], [3.5, 4.33012702], [4.5, 4.33012702], [5.5, 
    4.33012702], [6.5, 4.33012702], [1.0, 5.19615242], [2.0, 5.19615242], [
    3.0, 5.19615242], [4.0, 5.19615242], [5.0, 5.19615242], [6.0, 5.19615242]])
Hexagonal Self-Organizing map in Python