fix surface_plot bug for matrix data