finding error on values and plotting them