You are on page 1of 4

Which of the following python libraries are used for Data Visualization?

All of those mentioned

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 : (0, 10), (2, 14)

Which of the following argument to set function, is used for labelling ticks on
X- Axis?
xticklabels

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

The area where data is plotted is known as ___________.


Axes

m
er as
The function add_subplot returns ___?

co
Axes

eH w
An Axes can be associated with multiple Figures. State true or false.?

o.
False rs e
ou urc
What is the default width and height of a matplotlib figure , in inches?
6,4

What does the expression plot(x, y, 'bo') do ?


o

Plots blue colored circle markers


aC s
v i y re

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

Which of the following parameter is used to set the size of marker , while using
plot function?
ed d

markersize
ar stu

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

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


below code?
Th

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()
error

Which of the following parameter is used to draw shadow behind the pie plot?
Shadow

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

This study source was downloaded by 100000823840190 from CourseHero.com on 12-10-2021 00:54:49 GMT -06:00

https://www.coursehero.com/file/66859029/mptxt/
fractions, in a pie plot?
CounterClock

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

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


barh

What is the purpose for which linewidth parameter is used in a bar function?
For specifying width of edges, drawn on bars

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


horizontally?
orientation

What does the function boxplot return?


List(wrong)

m
Inter Quartile Range is ___?

er as
Q3-Q1

co
eH w
Which of the following parameter is used to set the symbol for points lying
after whisker?

o.
sym rs e
ou urc
What does notches represent in a boxplot ?
Confidence interval around the median

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


o

passed as input to hist function?


aC s

In each bin, you will see bars correpsonding to different distributions


v i y re

What does the function hist return ?


all

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


ed d

position
ar stu

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


number of outliers ?
whis
sh is

Which of the following expression returns location of matplotlibrc file?


matplotlib.matplotlib_fname
Th

Which of the following functions assisting in specifying the style sheets to be


used ?
both

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


True

Which of the following dictionary stores all the settings present in a


matplotlibrc file?
rcParams

Which of the following expressions list the names of styles associated with
matplotlib ?
plt.style.available

This study source was downloaded by 100000823840190 from CourseHero.com on 12-10-2021 00:54:49 GMT -06:00

https://www.coursehero.com/file/66859029/mptxt/
For applying different settings from default one to many plots, which of the
following is the best suited one?
To make changes in matplotlibrc file

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


directory ?
matplotlib.get_configdir

What is the extension of a matplotlib style sheet?


style,mpl(wrong)

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

import matplotlib.gridspec as gridspec


fig = plt.figure()
gs = gridspec.GridSpec(3, 3)
ax1 = plt.subplot(gs[:2, :2])
ax2 = plt.subplot(gs[0, 2])
ax3 = plt.subplot(gs[1, 2])
ax4 = plt.subplot(gs[-1, 0])

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

er as
plt.show()

co
1

eH w
Which parameter is used to set a Main title for a figure with multiple plots?

o.
main_title rs e
ou urc
What does the pyplot method, subplots return?
A figure and list of axes

How many subplots occupy two rows and one column in the figure, plotted using
o

below code?
aC s
v i y re

import matplotlib.gridspec as gridspec


fig = plt.figure()
gs = gridspec.GridSpec(3, 3)
ax1 = plt.subplot(gs[0, :])
ax2 = plt.subplot(gs[1, :-1])
ed d

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


ar stu

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


ax5 = plt.subplot(gs[-1, -2])
plt.show()
1
sh is

Which of the following parameter is used to set the background of subplot?


axisbg
Th

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()
2

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

What does the function subplot return?


Axes object

This study source was downloaded by 100000823840190 from CourseHero.com on 12-10-2021 00:54:49 GMT -06:00

https://www.coursehero.com/file/66859029/mptxt/
A Figure can contain multiple Axes. State true or false.?
True

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


or False
True

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


linestyle

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 100000823840190 from CourseHero.com on 12-10-2021 00:54:49 GMT -06:00

https://www.coursehero.com/file/66859029/mptxt/
Powered by TCPDF (www.tcpdf.org)

You might also like