From the course: Data Visualization with Python in Excel
Unlock this course with a free trial
Join today to access over 24,700 courses taught by industry experts.
Challenge: Customize your first plot
From the course: Data Visualization with Python in Excel
Challenge: Customize your first plot
(upbeat music) - [Instructor] Now that you've learned how to create a basic bar chart with Python and Excel, let's take it a step further. The data set for this challenge is located in the file named First Plot Challenge in our course folder. This data set details the average monthly rainfall for a hypothetical city over the last year. Your task is to create a line plot that visualizes this data and highlights the trends throughout the year. Start by loading the data into Python and Excel. Next, use pyplot from matplotlib to craft your line chart, placing the months on the X axis and the rainfall measurements and inches on the Y axis. Remember, in our last session, we used the plt.bar function. This time, however, you'll be using plt.plot to create a line chart. Don't forget to add a title to your chart that accurately reflects what the data represents. If you're feeling adventurous, try customizing your chart even further. For example, see if you can figure out how to adjust the plot…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.