73 solutions available
Question 1Assertion (A): Data Visualization helps users in analyzing a large amount of data in a simple way.Reasoning (R): Data Visualization makes...
Question 2Assertion (A): import matplotlib.pyplot as plt is used to import pyplot module.Reasoning (R): Matplotlib is a Python library and pyplot is...
Question 3Assertion (A): Data Visualization refers to the graphical representation of information and data using visual elements like charts, graphs...
Question 4Assertion (A): A histogram is basically used to represent data provided in the form of groups spread in non-continuous ranges.Reasoning...
Question 5Assertion (A): legend (labels = ['Text']) is used to give title to the graph.Reasoning (R): plt.savefig("path") will save the current graph...
Question 6Assertion (A): In histogram, X-axis is about bin ranges whereas Y-axis talks about frequency.Reasoning (R): The bins (intervals) must be...
Question 7Assertion (A): Bar graph and histogram are same.Reasoning (R): A bar graph represents categorical data using rectangular bars. A histogram...
Question 8Assertion (A): Marker has different elements i.e., style, color, size, etc.Reasoning (R): We can customize line of a line chart by using...
Question 1Hindustan Departmental Stores sell items of daily use such as shampoo, soap and much more. They record the entire sale and purchase of...
Question 2Anirudh is trying to write a code to plot line graph shown in the figure below. Help him fill in the blanks in the code and get the desired...
Question 1Data Visualization refers to the graphical or visual representation of information and data using visual elements like charts, graphs and...
Question 2Pyplot is a collection of methods with Matplotlib library which allows the user to construct 2D plots easily and interactively.
Question 3The line chart is a graph of plotted points on two axes connected by a straight line.
Question 4Title is the text that appears on the top of the plot and defines what the chart is about.
Question 5The axes of a plot can be labelled using xlabel() and ylabel() functions.
Question 6A histogram is a summarization tool for discrete or continuous data.
Question 7Pyplot module's hist() let us create histograms.
Question 8In a bar chart, each column represents a group defined by a categorical variable.
Question 9barh() function is used to create horizontal bar chart.
Question 10The area on which actual plot will appear is defined by axes.
Question 11Bins describe the number of data points that fall within a specified range of values.
Question 12To change the orientation of the histogram, we can use orientation argument with hist().
Question 13Legends are used to explain different sets of data plotted in different colors or marks in the chart.
Question 1Which Python package is used for 2D graphics?matplotlib.pyplotmatplotlib.pipmatplotlib.numpymatplotlib.plt
Question 2The most popular data visualization library in Python is:pipmatinfolibmatplotlibmatpiplib
Question 3Matplotlib allows you to create:tablechartsmapsinfographics
Question 4Which of the following is not a visualization under Matplotlib?Line plotHistogramBar plotTable plot
Question 5Which of the following commands is used to install Matplotlib for coding?import plt.matplotlib as plotimport plot.matplotlib as ptimport...
Question 6Which of the following methods should be employed in the code to display a plot()?show()display()execute()plot()
Question 7Which of the following statements is used to create a histogram of 'step' type with 20 bins?plt.hist(x, bins = 20, histtype =...
Question 8The part of chart which identifies different sets of data plotted on plot by using different colors is called:legendstitleaxesfigure
Question 9Which of the following is an incorrect example of savefig() function?plt.savefig("bar1.pdf"...
Question 10Which of the following plots makes it easy to visualize a trend in data over intervals of time.Box plotHistogramLine ChartBar chart
Question 11COVID-19 patient analysis in the Mumbai region is to be plotted. The command used to give title to X-axis as "No. of Patients" in the...
Question 12Python Matplotlib ............... is used to compare different categorical or discrete variables.line plotbar graphhistogramboxplot
Question 1Plot a line chart for depicting the population for the last 5 years as per the specifications given below:plt.title("My Title") will add a...
Question 2What is Matplotlib?
Question 3What do you mean by pyplot?
Question 4How many types of graphs are plotted using pyplot?
Question 5Which function is used to show the graph?
Question 6Differentiate between figure and axes.
Question 7What is the use of subplot() function? Write its parameters.
Question 8Write a Python program to draw a line with a suitable label in the X-axis and Y-axis, and a title.
Question 9Write a Python program to plot two or more lines with legends, different widths and colors.
Question 10Write a Python program to plot two or more lines and set the line markers.
Question 11Write a Python program to display a bar chart of the number of students in a class. Use different colors for each bar.Sample data:Class:...
Question 12Write a Python program to display a horizontal bar chart of the number of students in a class.Sample data:Class: I, II, III, IV, V, VI,...
Question 13Plot a line graph for: y2 = 4*x
Question 14Write a Python program to plot the function y = x2 using the Matplotlib library.
Question 15Name the various methods used with pyplot object.
Question 16Write the specific purpose of the following functions used in plotting:(a) show()(b) legend()
Question 17Plot a histogram of a class test of 40 students based on random sets of marks obtained by the students (MM=100).
Question 18A list, namely temp contains average temperature for seven days of last week. You want to see how the temperature changes in the last...
Question 19Collect data about colleges in Delhi University or any other university of your choice and number of courses they run for Science,...
Question 20What is a histogram? How do you create histograms in Python?
Question 21What are the various types of histograms that can be created through hist() function?
Question 22When should you create histograms and when should you create bar charts to present data visually?
Question 23(i)Given the following set of data:Weight measurements for 14 values of muffins (in grams)78, 72, 69, 81, 63, 67, 6579, 74, 71, 83, 71,...
Question 23(ii)Given the following set of data:Weight measurements for 14 values of muffins (in grams)78, 72, 69, 81, 63, 67, 6579, 74, 71, 83, 71,...
Question 23(iii)Given the following set of data:Weight measurements for 14 values of muffins (in grams)78, 72, 69, 81, 63, 67, 6579, 74, 71, 83, 71,...
Question 23(iv)Given the following set of data:Weight measurements for 14 values of muffins (in grams)78, 72, 69, 81, 63, 67, 6579, 74, 71, 83, 71,...
Question 24Kritika was asked to write the names of a few libraries in Python used for data analysis and one method of each. Help her write at least 3...
Question 1The Matplotlib is a Python interface.
Question 2To save the plot, we have to use save graph() function.
Question 3Plot can be saved in a pdf format.
Question 4We can specify different colors for different bars of a bar chart.
Question 5To use pyplot for data visualization, we have to import it by giving import command: import matplotlib.pyplot
Question 6Pyplot is a Python library.
Question 7To specify a common width for all bars in a bar graph, we have to use thick argument.
Question 8To add a title to the plot, we have to call function header().
Question 9Markers are data points in the graphs.
Question 10Line style argument of plot() function is not required in scatter chart.
Question 11When we don't specify X or Y limits for a plot, then pyplot does not automatically decide limits as per values being plotted.