← Back to Dashboard

Data Visualization Matplotlib Seaborn: Easy Exercises EASY

"""
Topic 09: Data Visualization (Matplotlib & Seaborn) - EASY Exercises (10)
"""

# Exercise 1: Import matplotlib.pyplot and create a simple line plot of [1, 2, 3, 4] vs [1, 4, 9, 16].
# Write your code below:


# Exercise 2: Add a title "My First Plot" and labels for X and Y axes to the plot above.
# Write your code below:


# Exercise 3: Create a bar chart showing the population of 4 cities: 
# cities = ['NY', 'London', 'Paris', 'Tokyo'], population = [8, 9, 2, 14] (in millions).
# Write your code below:


# Exercise 4: Create a scatter plot of 50 random points using NumPy and Matplotlib.
# Write your code below:


# Exercise 5: Create a histogram for a list of 100 random numbers using plt.hist().
# Write your code below:


# Exercise 6: Import seaborn and set the theme to "whitegrid".
# Write your code below:


# Exercise 7: Create a pie chart showing the distribution of your daily activity (Sleep, Work, Play, Eat).
# Write your code below:


# Exercise 8: Create a simple boxplot using Seaborn for a list of numbers.
# Write your code below:


# Exercise 9: Use plt.subplot() to create two plots (one line plot, one scatter plot) side by side.
# Write your code below:


# Exercise 10: Save a plot as an image file named 'my_plot.png' using plt.savefig().
# Write your code below: