I am not sure what is going on here with this error. The resulting figure is suppose to have 2 plots but only the first one is shown. There is some issue with the subplot.