The document provides code to create a figure with 4 subplots, with different plots in each subplot. It includes code to plot a bar chart, histogram, pie chart, and scatter plot by providing data for each. The code is then updated to add titles and labels to the subplots, and adjust the spacing between subplots.
The document provides code to create a figure with 4 subplots, with different plots in each subplot. It includes code to plot a bar chart, histogram, pie chart, and scatter plot by providing data for each. The code is then updated to add titles and labels to the subplots, and adjust the spacing between subplots.
plt.show() 2. In the first subplot (top-left), plot a bar chart using the following data: Categories: ['Category A', 'Category B', 'Category C', 'Category D', 'Category E'] Values: [23, 56, 41, 62, 19] ?
plt.show() 4. In the third subplot (bottom-left), plot a pie chart using the following data: Labels: ['Apple', 'Banana', 'Orange', 'Mango'] Sizes: [30, 25, 15, 30] ? Answer: import matplotlib.pyplot as plt