ymin is now the threshold instead of 0