Question
Which code produces the same result as the one below? plt.plot(year, sales) plt.title('Sales by Year', fontsize=20) Select an answer: l fig, axes = plt.subplots(nrows=1, ncols=1)
Which code produces the same result as the one below?
plt.plot(year, sales) plt.title('Sales by Year', fontsize=20)
Select an answer:
l fig, axes = plt.subplots(nrows=1, ncols=1) axes.plot(year, sales) axes.set_title('Sales by Year', fontsize=20)
l fig, axes = plt.subplots(nrows=1, ncols=1) axes.plot(year, sales) plt.set_title('Sales by Year') plt.set_font(20)
l fig, axes = plt.subplots(nrows=1, ncols=1) axes.plot(year, sales) axes.set_font_and_title(20, 'Sales by Year')
l fig, axes = plt.subplots(nrows=1, ncols=1) axes.plot(year, sales) axes.title('Sales by Year') axes.font(fontsize=20)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started