set plot size correctly