plot distribution of both error and data