clean up of code for proper motion and parallax error plots