fixes for 2D patch plots