Functionality to plot while solving pdepe