Fixed plotting finally.