DSDV Module 5 QB
DSDV Module 5 QB
MODULE-5
1 Explain the architecture of Matplotlib and its integration with other CO5 L2 10
Python libraries like NumPy and pandas. Discuss the differences
between the `pyplot` interface and the object-oriented interface in
Matplotlib. When would you use each one? Provide examples to
illustrate your explanation.
2 Write a Python script to create and display a figure with two CO5 L2 10
subplots: a line plot and a scatter plot, each with custom titles and
axis labels.
3 Using pandas, create a DataFrame and generate a line plot from it. CO5 L2 10
Describe the steps and methods used to plot data directly from a
DataFrame.
4 Describe the process of saving a Matplotlib figure as an image file CO5 L2 10
in different formats (e.g., PNG, PDF). Provide an example code
snippet.
5 Describe the process of creating and closing figures in Matplotlib. CO5 L2 10
Provide an example of how to customize a figure's size, DPI, and
background color.
6 Create a complex plot with multiple data series and a detailed CO5 L2 10
legend. How do you add labels, titles, text annotations, and legends
to a plot in Matplotlib? Provide examples. Explain how to
customize the legend's location, frame, and font properties.
7 Explain how to create and customize violin plots in Matplotlib. CO5 L2 10
Discuss the benefits of using violin plots over box plots. Provide a
code example.
8 Create a bar chart with Matplotlib. Add appropriate axis labels, a CO5 L3 10
title, and a legend explaining the data series. Include annotations to
highlight specific data points.
9 Generate a histogram for a given dataset. Explain how to adjust the CO5 L2 10
number of bins and customize the appearance of the plot (e.g.,
colors, edge styles).
10 Create a scatter plot with labeled data points. Explain how to use CO5 L2 10
different marker styles and colors to distinguish between different
categories of data.
11 Generate a stacked area chart and a stacked bar chart for a multi- CO5 L2 10
category dataset. Explain the differences in their implementation
and visualization.
12 Load an image using Matplotlib, display it, and apply basic image CO5 L3 10
operations such as cropping and resizing. Apply advanced image
processing techniques such as edge detection, filtering, and
transformation using Matplotlib. Provide an example demonstrating
these techniques.
13 Describe how to overlay plots on images in Matplotlib. Provide a CO5 L3 10
detailed example.
14 How can you handle and visualize large datasets efficiently in CO5 L2 10
Matplotlib? Discuss techniques and provide an example
15 Compare and contrast different types of plots in Matplotlib, such as CO5 L2 10
bar charts, pie charts, and scatter plots. Provide code snippets for
each plot type
16 Explain how to create subplots in a single Matplotlib figure. Provide CO5 L2 10
a code example.
17 Design a complex dashboard layout with multiple subplots using CO4 L2 10
GridSpec. Explain how to manage space between plots and ensure a
tight layout without overlaps.Using the subplot2grid function, create
a complex layout with multiple plots of varying sizes.
18 Demonstrate how to write mathematical expressions on a Matplotlib CO4 L2 10
plot. Provide examples of different types of expressions and their
formatting.
19 Create a bubble plot with varying bubble sizes and colors based on CO4 L2 10
data attributes. Explain how to scale bubble sizes and map colors to
data values.
20 Create a radar chart to compare multiple categories of data. Explain CO4 L2 10
the process of normalizing data, creating the chart, and customizing
its appearance.
Course Faculty