Put a title on it
Let's take our genre_totals
barplot from the last chapter and improve it with better labels, less boarders, and a preset style. First, let's add a title.
Note that seaborn
and matplotlib.pyplot
have been loaded for you as sns
and plt
, respectively.
This exercise is part of the course
Python for Spreadsheet Users
Exercise instructions
- Use
sns.barplot()
to create a graph ofgenre_totals
withmovie_genre
on the x axis andrevenue
on the y-axis. - Add the title
Revenue by Genre
to the plot using the correctplt
function.
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Create barplot
# Add a title
plt.____(____)
plt.show()