Question
Assume that we have already issued the following commands: import matplotlib.pyplot as plt fig, ax = plt.subplots() How do you set the y axis limits
Assume that we have already issued the following commands:
import matplotlib.pyplot as plt
fig, ax = plt.subplots()
How do you set the y axis limits to -5 to 5?
Select one:
a. fig.ylim(-5,5)
b. ax.set_ylim(-5,5)
c. ax.ylim(-5,5)
d. set_ylim(-5,5)
e. fig.set_ylim(-5,5)
What library do you have to IMPORT in order to do plotting inside of Python?
Select one:
a. fig.add_subplot
b. matplotlib.pyplot
c. math
d. functools
e. plt.figure
What pyplot command would you issue to show a plot in a notebook? Here we assume that we have already imported matplotlib.
Select one:
a. pyplot.matshow()
b. pyplot.show()
c. pyplot.graph_show()
d. pyplot.display()
e. pyplot.plot_show()
Does the matplotlib library proivides a shortcut form that both creates the Figure object and creates a single subplot axes object?
Select one:
a. Yes
b. No
Can the Axes object allow us to control the size and the resolution of the generated figure?
Select one:
a. No; the Figure object is used for that control.
b. Yes
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