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.
Deze oefening maakt deel uit van de cursus
Python for Spreadsheet Users
Oefeninstructies
- Use
sns.barplot()to create a graph ofgenre_totalswithmovie_genreon the x axis andrevenueon the y-axis. - Add the title
Revenue by Genreto the plot using the correctpltfunction.
Praktische interactieve oefening
Probeer deze oefening eens door deze voorbeeldcode in te vullen.
# Create barplot
# Add a title
plt.____(____)
plt.show()