Imagine that you have input the following command in a jupyter cell: By default,
ID: 3588183 • Letter: I
Question
Imagine that you have input the following command in a jupyter cell:
By default, what will be the limits of the x- and y-axes?
Select one:
a. 0 to 2 for y and 0 to 1 for x
b. 0 to 1 for both x and y.
c. 0 to 2 for y and 0 to 2 for x
d. 0 to 1 for y and 0 to 2 for x
Image that you have already entered the following in to a Jupyter cell:
import matplotlib.pyplot as plt
fig, ax = plt.subplots()
What command would you use to make sure that the range of the x-axis is from -2 to 2?
Select one:
a. fig.xlim(-2, 2)
b. ax.xlim(-2, 2)
c. ax.set_xlim(-2, 2)
d. fig.set_xlim(-2, 2)
Imagine that you've already issued the following commands in your jupyter cell:
Which command below would place a tick-mark and a label on 0, 5, and 10?
Select one:
a.
b.
c.
d.
Fill in the blank:
Seaborn can be easily imported into your Python program, by using import seaborn as sns, and with one function call to ________ your plot colors and styles can be improved.
Select one:
a. sns.set()
b. sns.plot()
c. sns.apply()
d. sns.style()
Fill in the following blank, concerning seaborn:
The _____ method can remove the box appearance of a plot.
Select one:
a. paper
b. notebook
c. talk
d. despine
e. poster
Explanation / Answer
1. a. 0 to 2 for y and 0 to 1 for x
2.c. ax.set_xlim(-2, 2)
3. a.ax.set_xticks(np.arange(0, 10, 5))
4. d. sns.style()
5. a. paper