adjust right margin for 2d plots