Hinton diagram generation