Modified nhist to operate on an existing axis, instead of creating a new figure each time.