Add subplot/setup grid, and correct the bug that could not plot two curves in one figure.