Hinton diagrams
Hinton diagrams are useful for visualizing the values of a 2D array (e.g. a weight matrix): Positive and negative values are represented by white and black squares, respectively, and the size of each square represents the magnitude of each value.
Initial idea from David Warde-Farley on the SciPy Cookbook

import matplotlib.pyplot as plt
import numpy as np
def hinton(matrix, max_weight=None