147 solutions available
Question 1Assertion. The matplotlib library of Python is used for data visualization.Reason. The PyPlot interface of matplotlib library is used for...
Question 2Assertion. A scatter chart simply plots the data points on a chart to show the trend in the data.Reason. A line chart connects the plotted...
Question 3Assertion. Both scatter() and plot() functions of PyPlot can create scatter charts.Reason. The plot() function can create line charts as...
Question 4Assertion. For the same sets of data, you can create various charts using plot(), scatter(), pie(), bar() and barh().Reason. All the data...
Question 5Assertion. Five-point statistical summary of a data set can be visually represented.Reason. The boxplot() function can plot the highest and...
Question 6Assertion. Line graph is a tool for comparison and is created by plotting a series of several points and connecting them with a straight...
Question 1What is data visualization ?
Question 2Name the Python library generally used for data visualization.
Question 3Is Pyplot a Python library ? What is it ?
Question 4Name the function you will use to create a horizontal bar chart.
Question 5Which argument will you provide to change the following in a line chart ?(i) width of the line(ii) color of the line
Question 6What is a marker ? How can you change the marker type and color in a plot ?
Question 7Using which function of Pyplot can you plot histograms ?
Question 8Are bar charts and histograms the same ?
Question 9Name various types of histogram plots that you can create using Pyplot.
Question 10What is a frequency polygon ?
Question 11What is the use of box plot ?
Question 12Using which function of Pyplot, can you create box plots ?
Question 1A histogram is a plot that shows the underlying frequency distribution of a set of continuous data.
Question 2Pyplot interface is a collection of methods within matplotlib library of Python.
Question 3Pyplot's plot() function is used to create line charts.
Question 4Pyplot's barh() function is used to create horizontal bar charts.
Question 5Pyplot's scatter() function is used to create scatter charts.
Question 6Pyplot's hist() function is used to create histogram.
Question 7The datapoints plotted on a graph are called markers .
Question 8The linewidth argument of plot() specifies the width for the line.
Question 9The linestyle argument of plot() specifies the style of the line.
Question 10The width argument of bar() specifies the bar width.
Question 11The xticks() function is used to specify ticks for x-axis.
Question 12To save a plot, savefig() function is used.
Question 13The orientation argument of hist() is set to create a horizontal histogram.
Question 14The showmeans argument shows the arithmetic mean on a boxplot.
Question 15The notch argument in a boxplot() creates a notched boxplot.
Question 16The loc argument of legend() provides the location of legend.
Question 17Using Python Matplotlib histogram can be used to count how many values fall into each interval. (line plot / bar graph / histogram)
Question 1Which library is imported to draw charts in Python ?csvmatplotlibnumpypandas
Question 2PyPlot is an interface of Python's ............... library.seabornplotlyggplotmatplotlib
Question 3For 2D plotting using a Python library, which library interface is often used ?seabornplotlymatplotlibmatplotlib.pyplot
Question 4Which of the following is not a valid chart type ?histogramstatisticalpiebox
Question 5Which of the following is not a valid plotting function of Pyplot ?plot()bar()line()pie()
Question 6Which of the following plotting functions does not plot multiple data series ?plot()bar()pie()barh()
Question 7The plot which tells the trend between two graphed variables is the ............... graph/chart.linescatterbarpie
Question 8The plot which tells the correlation between two variables which may not be directly related is ..................
Question 9A ............... is a summarization tool for discrete or continuous data.quartilehistogrammeanmedian
Question 10A visual representation of the statistical five number summary of a given dataset is known as ............... .histogramfrequency...
Question 11Which of the following functions is used to create a line chart ?line()plot()chart()plotline()
Question 12Which of the following function will produce a bar chart ?plot()bar()plotbar()barh()
Question 13Which of the following function will create a vertical bar chart ?plot()bar()plotbar()barh()
Question 14Which of the following function will create a horizontal bar chart ?plot()bar()plotbar()barh()
Question 15To specify the style of line as dashed, which argument of plot() needs to be set ?linewidthstylelinestyle
Question 16The data points plotted on a graph are called ............... .pointspointersmarksmarkers
Question 17A ............... graph is a type of chart which displays information as a series of data points connected by straight line...
Question 18To create scatter charts using plot(), which argument is skipped ?markerlinestylemarkeredgecolorlinewidth
Question 19In scatter(), which argument is used to specify the size of data points ?sizesmarkermarkersize
Question 20Which argument of bar() lets you set the thickness of bar ?thickthicknesswidthbarwidth
Question 21To change the width of bars in a bar chart, which of the following arguments with a float value is used ?hwidthwidthbreathbarwidth
Question 22Which function lets you set the title of the plot ?title()plottitle()graphtitle()all of these
Question 23The command used to give a heading to a graph is ............... .plt.show()plt.plot()plt.xlabel()plt.title()
Question 24Which function would you use to set the limits for x-axis of the plot ?limits()xlimits()xlim()lim()
Question 25Which function is used to show legends ?display()show()legend()legends()
Question 26Which argument must be set with plotting functions for legend() to display the legends ?datalabelnamesequence
Question 27Which function is used to create a histogram ?histo()histogram()hist()histtype
Question 28Which argument in hist() is used to create a stacked bar type histogram ?histthisttypetypebarstacked
Question 29Which of the following functions can plot only one data series ?plot()bar()boxplot()pie()
Question 30Which argument must be provided to create wedges out of a pie chart ?labelautopctexplodewedge
Question 31Which argument should be set to display percentage share of each pie on a pie chart ?labelautopctexplodewedge
Question 32Which function creates a box plot ?box()plot()boxplot()showbox()
Question 33Which argument of boxplot() is used to create a filled boxplot ?fillboxpatch_artistpatch
Question 1PyPlot is a sub-library of matplotlib library.
Question 2Statement import pyplot.matplotlib is a valid statement for working on pyplot functions.
Question 3By default, pie chart is printed in elliptical or oval shape.
Question 4The default shape of pie chart cannot be changed from oval.
Question 5A line chart can be plotted using pyplot library's line() function.
Question 6A line chart can be plotted using pyplot library's plot() function.
Question 7A bar chart can be plotted using pyplot library's bar() function.
Question 8A bar chart can be plotted using pyplot library's barh() function.
Question 9It is not possible to plot multiple series of values in the same bar graph.
Question 10A standard marker of representing a non-number data in Python libraries is NaN.
Question 11If the linestyle argument is missing along with markerstyle-string in a plot(), a scatter type chart get created.
Question 12The bar() function can also create horizontal bar charts.
Question 13The pie() function can plot multiple data series.
Question 14The plot is always as per the data series being plotted irrespective of the xlim().
Question 15Frequency polygon is created from histogram.
Question 16What is not true about Data Visualization ?(a) Graphical representation of information and data.(b) Helps users in analyzing a large...
Question 1Name the library of which the PyPlot is an interface.
Question 2Write the statement to import PyPlot in your script.
Question 3Name the functions to create the following :(a) line chart(b) bar chart(c) horizontal bar chart(d) histogram(e) scatter chart(j) boxplot(g)...
Question 4What is a line chart ?
Question 5What is a scatter chart ? How is it different from line chart ?
Question 6What is the utility of pie chart ?
Question 7What is a bar chart ? How is it useful as compared to the line chart ?
Question 8What is a histogram ? What is its usage/utility ?
Question 9What is a boxplot ? Which situations are more appropriate for boxplot ?
Question 10What is a frequency polygon ? What is it utility ?
Question 11Name the function to label axes.
Question 12Name the function to give title to a plot.
Question 13Name the function to set figure size of a plot.
Question 14Name the function to set limits for the axes.
Question 15Name the function to show legends on a plot.
Question 16Name the function to add ticks on axes.
Question 1What is the significance of data visualization ?
Question 2How does Python support data visualization ?
Question 3What is the use of matplotlib and pyplot ?
Question 4What are the popular ways of plotting data ?
Question 5Compare bar() and barh() functions.
Question 6What is the role of legends in a graph/chart ?
Question 7What will happen if you use legend() without providing any label for the data series being plotted ?
Question 8What do you understand by xlimit and ylimit ? How are these linked to data being plotted ?
Question 9When should you use(i) a line chart(ii) a bar chart(iii) a scatter chart(iv) pie chart(v) boxplot ?
Question 10A list namely temp contains average temperatures for seven days of last week. You want to see how the temperature changed in last seven...
Question 11What is histogram ? How do you create histograms in Python ?
Question 12What are various types of histograms that can be created through hist() function ?
Question 13When should you create histograms and when should you create bar charts to present data visually ?
Question 14What is cumulative histogram ? How do you create it using PyPlot ?
Question 15What is frequency polygon ? How do you create it ?
Question 16What is 5 point summary ?
Question 17What is Boxplot ? How do you create it in Pyplot ?
Question 1(a)Execute the following codes and find out what happens ? (Libraries have been imported already ; plt is the alias name for...
Question 1(b)Execute the following codes and find out what happens ? (Libraries have been imported already ; plt is the alias name for...
Question 1(c)Execute the following codes and find out what happens ? (Libraries have been imported already ; plt is the alias name for...
Question 2Write the output from the given python code :import matplotlib.pyplot as plt Months = ['Dec', 'Jan', 'Feb', 'Mar'] Attendance = [70, 90,...
Question 3Write a program to add titles for the X-axis, Y-axis and for the whole chart in below code.import matplotlib.pyplot as plt Months = ['Dec',...
Question 4plt.plot(A, B) produces (A and B are the sequences same as created in question 1) chart as :Write code to produce charts as shown below:
Question 5Write suitable Python code to create 'Favourite Hobby' Bar Chart as shown below :Also give suitable python statement to save this chart.
Question 6Consider the following graph. Write the Python code to plot it. Also add the Title, label for X and Y axis.Using the following data for...
Question 7(a)Given a data frame df1 as shown below : 199020002010a52340890b64480560c786881102d94766889Write code to create a scatter chart from the...
Question 7(b)Given a data frame df1 as shown below : 199020002010a52340890b64480560c786881102d94766889Write code to create a line chart from the 1990...
Question 7(c)Given a data frame df1 as shown below : 199020002010a52340890b64480560c786881102d94766889Write code to create a bar chart plotting the...
Question 8The score of four teams in 5 IPL matches is available to you. Write a program to plot these in a bar chart.
Question 9The score of a team in 5 IPL matches is available to you. Write a program to create a pie chart from this data, showing the last match's...
Question 10The prices of a stock for 3 months are given. Write a program to show the variations in prices for each month by 3 lines on same line...
Question 11A distribution data stores about 1000 random number. Write a program to create a scatter chart from this data with varying point sizes.
Question 12Navya has started an online business. A list stores the number of orders in last 6 months. Write a program to plot this data on a...
Question 13(a)Given the following set of data :Weight measurements for 16 small orders of French-fries (in grams). 78 72 69 81 63 67 65 75 79 74...
Question 13(b)Given the following set of data :Weight measurements for 16 small orders of French-fries (in grams). 78 72 69 81 63 67 65 75 79 74...
Question 13(c)Given the following set of data :Weight measurements for 16 small orders of French-fries (in grams). 78 72 69 81 63 67 65 75 79 74...
Question 13(d)Given the following set of data :Weight measurements for 16 small orders of French-fries (in grams). 78 72 69 81 63 67 65 75 79 74...
Question 14(a)Create an ndarray containing 16 values and then plot this array along with dataset of previous question in same histogram, normal...
Question 14(b)Create an ndarray containing 16 values and then plot this array along with dataset of previous question in same histogram, cumulative...
Question 14(c)Create an ndarray containing 16 values and then plot this array along with dataset of previous question in same histogram, horizontal...
Question 15Out of above plotted histograms, which ones can be used for creating frequency polygons ? Can you draw frequency polygons from all the...
Question 16Create/draw frequency polygon from the data used in above questions.
Question 17(a)From the following ordered set of data :63, 65, 67, 69, 69, 71, 71, 72, 74, 75, 78, 79, 79, 80, 81, 83 Create a horizontal boxplot.
Question 17(b)From the following ordered set of data :63, 65, 67, 69, 69, 71, 71, 72, 74, 75, 78, 79, 79, 80, 81, 83 Create a vertical boxplot.
Question 17(c)From the following ordered set of data :63, 65, 67, 69, 69, 71, 71, 72, 74, 75, 78, 79, 79, 80, 81, 83 Show means in the boxplot.
Question 17(d)From the following ordered set of data :63, 65, 67, 69, 69, 71, 71, 72, 74, 75, 78, 79, 79, 80, 81, 83 Create boxplot without the box.
Question 18Sina has created ordered set of data from the number of new customers registered on his online service centre in last 20 months.Write a...