fixed bug where ymin/ymax weren't being used