Data Visualization Matplotlib Seaborn: Concept Notes
"""
Topic 09: Data Visualization (Matplotlib & Seaborn) - Concept Notes
Data visualization is the graphical representation of information and data. By using visual elements like charts, graphs, and maps, data visualization tools provide an accessible way to see and understand trends, outliers, and patterns in data.
1. Matplotlib
- A low-level library for creating static, animated, and interactive visualizations.
- Core object: Pyplot module.
- Basic plots: Line, Bar, Scatter, Histogram, Pie.
2. Seaborn
- A high-level library based on Matplotlib.
- Provides a more aesthetically pleasing and statistically oriented interface.
- Built-in themes and color palettes.
- Advanced plots: Boxplot, Heatmap, Pairplot, Violinplot.
"""
import matplotlib.pyplot as plt
import numpy as np
x = np.linspace(0, 10, 100)
y = np.sin(x)
plt.figure(figsize=(8, 4))
plt.plot(x, y, label=&
plt.title(&
plt.xlabel(&
plt.ylabel(&
plt.legend()
import seaborn as sns
import pandas as pd
sns.set_theme(style="darkgrid")