Student Activity

Student Activity Guide:

1) Introduction to Matplotlib and Seaborn

  • Learn the basics of matplotlib and seaborn for data visualization.

  • Understand how to create basic plots.

Example Code:

import matplotlib.pyplot as plt
import seaborn as sns

# Simple line plot
x = [1, 2, 3, 4, 5]
y = [10, 15, 7, 20, 25]
plt.plot(x, y)
plt.show()

Student Exercise: Create a simple plot using matplotlib with different datasets.

2) Creating Line, Bar, and Scatter Plots

  • Use matplotlib to create different types of plots.

  • Understand the differences between line, bar, and scatter plots.

Example Code:

Student Exercise: Create a bar plot for a dataset with different categories and values. Also, create a scatter plot comparing two sets of values.

3) Customizing Plots with Labels, Legends, and Colors

  • Learn how to modify charts with labels, legends, and colors.

  • Customize grid styles and tick marks.

Example Code:

Student Exercise: Customize an existing plot by changing the colors, line styles, and grid appearance.

4) Interactive Visualizations with Seaborn

  • Use seaborn to enhance visualization aesthetics.

  • Create interactive and stylish plots using seaborn.

Example Code:

Student Exercise: Use seaborn to create a heatmap or violin plot using a sample dataset.

Last updated