Python How do you specify the type of LINE plotted in matplotlib? For example, w
ID: 3588188 • Letter: P
Question
Python
How do you specify the type of LINE plotted in matplotlib? For example, what word would go in the space below?
Assume the following commands have been issued:
Select one:
a. marker
b. linestyle
c. style
d. line
e. markerstyle
If we want to see how two comparable data sets agree with one another, which of the following lines should we draw as a reference?
Select one:
a. A linear regression line
b. A trendline
c. A best fit line
d. An identity line
e. A power law fit line
In a scatter plot matrix, each row and column is _____ dimension, and each cell plots a scatterplot of _____ dimensions.
Select one:
a. one, two
b. two, three
c. two, one
d. two, two
e. one, one
To make a scatter plot in Python, which matplotlib command(s) we can use?
Select one:
a. scatterplot() only
b. plot() only
c. both plot() and scatter(), but plot() provides greater flecibility
d. scatter() only
e. both plot() and scatter(), but scatter() provides greater flecibility
What command would you issue to insert legend at the lower left of the plot? Assume you have already issued the following commands and that x and y are both defined:
Select one:
a. ax.legend(loc = 'lower left')
b. fig.legend(loc = 'lower left')
c. ax.legend(location = 'lower left')
d. legen(loc='lower left')
e. figure.legend(location = 'lower left')
Explanation / Answer
1. b. linestyle
2. d. An identity line
3. a. one, two
4. b. plot() only
5. a. ax.legend(loc = 'lower left')
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.