Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

Which of the following value creates pentagon shaped markers?

1
h
p--
5

Which of the following parameter is used to set the size of marker , while using
plot function?
markersize--
size
marker_s
s

Which of the following parameter is used to set the style of a line?


linestyle--
plotstyle
style
lineshape

Which of the following type of values can be passed to color argument of plot
function?
Full names such as green

m
Hex strings such as #008000

er as
All of those mentioned--

co
RGB tuples

eH w
Which of the following value creates triangle markers, pointing left wards?

o.
lt rs e
<--
ou urc
l
>

Which of the following parameter is used to set the color of a error bar in bar
o

plots?
aC s

ec
v i y re

errcolor
color
ecolor--

What is the purpose for which linewidth parameter is used in a bar function?
ed d

For specifying width of legned box


ar stu

For specifying width of edges, drawn on bars


For specifying width of error bars
For specifying width of bars--

Which of the following parameter is used to set the direction of drawing


sh is

fractions, in a pie plot?


clock--
Th

counterclockwise
clockwise
counterclock--

Align bars on right side edges is feasible when �.


parameter, align set to right
parameter, align set to edge and width is made positive
parameter, align set to edge and width is made negative.
parameter, align set to edge

Which of the following parameter is used to set error bars on drawn vertical
bars in a bar plot?

xerr
yerr--
xerrline

This study source was downloaded by 100000832806195 from CourseHero.com on 10-11-2021 06:58:47 GMT -05:00

https://www.coursehero.com/file/61544856/matplotlib-1txt/
yerrline

Which of the following parameter is used to draw shadow behind the pie plot?
bg
shadow--
shade
backgroud

Inter Quartile Range is ___?

Q4 - Q2
Q3 - Q2
Q3 - Q1--
Q2 - Q1

What happens when a list of values, corresponding to multiple distributions , is


passed as input to hist function?
Histogram of only last distribution is plotted
No plot will be generated
Histogram of only first distribution is plotted
In each bin, you will see bars correpsonding to different distributions--

m
What does the function hist return ?

er as
bin count

co
All of those mentioned--

eH w
list of patches corresponding to each bar
edges of each bin

o.
rs e
Which of the following functions assisting in specifying the style sheets to be
ou urc
used ?
Both--
plt.style.use
plt.style.context
o

None of those mentioned


aC s
v i y re

Which of the following expression returns location of matplotlibrc file?


matplotlib.getrc
matplotlib.getrcpath
matplotlib.matplotlib_fname--
matplotlib.pyplot.rcfname
ed d
ar stu

For applying different settings from default one to many plots, which of the
following is the best suited one?
None of those mentioned
To make changes in matplotlibrc file--
To use a custom style with use
sh is

To use a custom style in a context


Th

Two or more styles can be composed. State true or false.


False
True--

How many rows does plot1 occupy in the figure, plotted using below code?
axes1 = plt.subplot(2, 2, (1,3), title='Plot1')
axes2 = plt.subplot(2, 2, 2, title='Plot2')
axes3 = plt.subplot(2, 2, 4, title='Plot3')
plt.show()
1
2--
3
4

Which of the following function adjusts the subplot params so that subplots fits
into figure area?

This study source was downloaded by 100000832806195 from CourseHero.com on 10-11-2021 06:58:47 GMT -05:00

https://www.coursehero.com/file/61544856/matplotlib-1txt/
adjust_layout
fit_layout
set_layout
tight_layout--

What does the function subplot return?


List of Subplot ojects
List of Axes objects
Figure object
Axes object--

Which of the following parameter is used to make a line disappear, when plotted
using plot function?
visible--
invisible
nodisplay
display

Which of the following functions is used to create horizontal bar plots?


bar
barplot
barhplot

m
barh--

er as
co
Which of the following parameter need to be set to increase or decrease the

eH w
number of outliers ?
whisdist

o.
whiskerdist rs e
whis--
ou urc
n

Which of the following type of values can be passed to color argument of plot
function?
o

Full names such as green


aC s

RGB tuples
v i y re

Hex strings such as #008000


All of those mentioned--

What is the default width and height of a matplotlib figure , in inches?


6, 4
ed d

4, 6
ar stu

6, 8
8, 6--

A Figure can contain multiple Axes. State true or false.?


False
sh is

True--
Th

Which of the following functions is used to locate the matplotlib config


directory ?
matplotlib.config
matplotlib.getconfig
matplotlib.get_config
matplotlib.get_configdir--

Which of the following expression returns location of matplotlibrc file?


matplotlib.getrc
matplotlib.getrcpath
matplotlib.matplotlib_fname--
matplotlib.pyplot.rcfname

Can a legend be drawn in a bar plot. State true or false.


False

This study source was downloaded by 100000832806195 from CourseHero.com on 10-11-2021 06:58:47 GMT -05:00

https://www.coursehero.com/file/61544856/matplotlib-1txt/
True--

Which of the following value need to be provided for align argument, if bars
need to be aligned on left side, in case of bar function?
edge--
right
center
left

How many subplots occupy two rows and one column in the figure, plotted using
below code?
import matplotlib.gridspec as gridspec
fig = plt.figure()
gs = gridspec.GridSpec(3, 3)
ax1 = plt.subplot(gs[0, :])
ax2 = plt.subplot(gs[1, :-1])
ax3 = plt.subplot(gs[1:, -1])
ax4 = plt.subplot(gs[-1, 0])
ax5 = plt.subplot(gs[-1, -2])
lt.show()
4
3

m
2

er as
1--

co
eH w
Which of the following dictionary stores all the settings present in a
matplotlibrc file?

o.
rcsettings rs e
rcParams--
ou urc
rcdict
rcParam

What does the expression a.plot(x, y, 'g^', x, y, 'g-') do?


o

Plots a single green colored line with upper traingle markers


aC s

Plots green colored upper traingle markers


v i y re

Plots a green dashed colored line and also a green line with full of traingles
Plots two green colored lines with different styles--

Which of the following is not a key of a dictionary, returned by boxplot


function?
ed d

means
ar stu

rect
fliers
caps--

Which of the following parameter is used to change the position of boxplots?


sh is

position
cpositions
Th

cpos
positions--

Which of the following statements is correct, based on figure generated with


below code?
import matplotlib.pyplot as plt
fig = plt.figure()
ax = fig.add_subplot(111, title="My Plot")
x = [0, 1, 2, 3, 4]
y = [0, 3, 6, 9, 12]
plt.scatter(x, y, s=[20, 60], c=['r', 'g'])
plt.show()
All data points are marked in red color with size 20
Alteranative data points are marked with different color and size
Results in Error--
All data points are marked in green color with size 60

This study source was downloaded by 100000832806195 from CourseHero.com on 10-11-2021 06:58:47 GMT -05:00

https://www.coursehero.com/file/61544856/matplotlib-1txt/
What does the function pyplot.bar returns
None
It returns a container with error bars
Returns a container with Bars--
Returns a container with Bars and error bars

What does the function boxplot return?


container
dict--
list
rectangle

What is the expected output of the following code?


import matplotlib.pyplot as plt
fig = plt.figure()
ax = fig.add_subplot(111)
plt.plot([10, 12, 14, 16])
plt.show()
A line passing through points : (1,10), (3, 14)
Error as plot takes x and y arguments--

m
A line passing through points : (10, 0), (14, 2)

er as
A line passing through points : (0, 10), (2, 14)

co
eH w
How many subplots occupy two rows in the figure, generated using below code?

o.
import matplotlib.gridspec as gridspec
rs e
fig = plt.figure()
ou urc
gs = gridspec.GridSpec(3, 3)
ax1 = plt.subplot(gs[:2, :2])
ax2 = plt.subplot(gs[0, 2])
ax3 = plt.subplot(gs[1, 2])
o

ax4 = plt.subplot(gs[-1, 0])


aC s

ax5 = plt.subplot(gs[-1, 1:])


v i y re

plt.show()
1
2--
4
3
ed d
ar stu

The expression add_subplot(111) is equivalent to add_subplot(1,1,1). State True


or False
True--
False
sh is

Which of the following parameter need to be set mandatorily, for plot function
to create a legend?
Th

point
text
legend
label--

Which of the following parameter is used to set to draws bars of histogram


horizontally?
barh
horiz
orientation--
barhplot

What does notches represent in a boxplot ?


Confidence interval around range
Confidence interval around the mean
None of those mentioned

This study source was downloaded by 100000832806195 from CourseHero.com on 10-11-2021 06:58:47 GMT -05:00

https://www.coursehero.com/file/61544856/matplotlib-1txt/
Confidence interval around the median--

m
er as
co
eH w
o.
rs e
ou urc
o
aC s
v i y re
ed d
ar stu
sh is
Th

This study source was downloaded by 100000832806195 from CourseHero.com on 10-11-2021 06:58:47 GMT -05:00

https://www.coursehero.com/file/61544856/matplotlib-1txt/
Powered by TCPDF (www.tcpdf.org)

You might also like