pkz-contour closes matplotlib figure when finished with it, freeing memory