2D plotting/error metrics assumes that x and y are equal, update error metric and plotting to account for different x and y lengths