Switching between styles
Selecting a style to use affects all of the visualizations that are created after this style is selected.
Here, you will practice plotting data in two different styles. The data you will use is the same weather data we used in the first lesson: you will have available to you the DataFrame seattle_weather
and the DataFrame austin_weather
, both with records of the average temperature in every month.
This exercise is part of the course
Introduction to Data Visualization with Matplotlib
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Use the "ggplot" style and create new Figure/Axes
____
____
ax.plot(seattle_weather["MONTH"], seattle_weather["MLY-TAVG-NORMAL"])
plt.show()