Adds ndarray support for matplotlib