Added function to create two plots in the same window