eliminate drastic white space when only a few PIs are chosen
fix problem where emppty $ killed graph, add other units