Fixes bug #3774: Horizontal parts of plots at ymin/ymax are invisible