DATA VISUALIZATION (MATPLOTLIB)
1. What is data visualization?
Presenting data in graphical form (charts/plots).
2. What is Matplotlib?
A Python library used to create charts.
3. What is a line chart used for?
Showing trends over time.
4. What is a bar chart used for?
Comparing categories.
5. What is a histogram?
A graph showing the frequency distribution of continuous data.
6. Use of xlabel() and ylabel()?
xlabel() sets x-axis label, ylabel() sets y-axis label.
7. What is subplot()?
To create multiple plots in a single figure.
8. What does plt.show() do?
Displays the graph.
9. What is legend() used for?
Displays labels for plotted data.
10. What is a scatter plot?
A graph showing relationship between two numerical variables.
11. What is the difference between a bar chart and barh chart?
bar() → vertical bars
barh() → horizontal bars
12. What is the use of title()?
Sets the title of the graph.
13. What is grid() used for?
Adds grid lines to the plot.
14. Which chart is best for percentage distribution?
Pie chart.
15. Can we plot multiple lines on one graph?
Yes, by calling plot() multiple times.
16. What is the default figure size in Matplotlib?
6.4 x 4.8 inches (approximately).

.png)

0 Comments
Please do note create link post in comment section