Complete the code to create a figure and axes using the object-oriented interface.
fig, ax = plt.[1]()The plt.subplots() function creates a figure and axes objects for plotting using the OO interface.
Complete the code to plot data using the axes object in the OO interface.
ax.[1](x, y)Using ax.plot() plots the data on the axes object in the OO interface.
Fix the error in setting the title using the OO interface.
ax.[1]('My Plot Title')
The correct method to set the title in the OO interface is set_title().
Fill both blanks to create a scatter plot and set x and y labels using the OO interface.
ax.[1](x, y) ax.[2]('X axis') ax.set_ylabel('Y axis')
Use ax.scatter() to create a scatter plot and ax.set_xlabel() to set the x-axis label in the OO interface.
Fill all three blanks to create a bar chart, set the title, and display the plot using the OO interface.
fig, ax = plt.subplots() ax.[1](categories, values) ax.[2]('Category Counts') plt.[3]()
Use ax.bar() to create a bar chart, ax.set_title() to set the title, and plt.show() to display the plot.