In this module, you will learn about data visualization and some of the best practices to keep in mind when creating plots and visuals. You will also learn about the history and the architecture of Matplotlib and learn about basic plotting with Matplotlib. In addition, you will learn about the dataset on immigration to Canada, which will be used extensively throughout the course. Finally, you will briefly learn how to read CSV files into a pandas dataframe, process and manipulate the data in the dataframe, and generate line plots using Matplotlib.
In this lesson you will learn about:
- Describe the importance of data visualization
- Relate the history of Matplotlib and its architecture
- Apply Matplotlib to create plots using Jupyter notebooks
- Read CSV files into a Pandas DataFrame; process and manipulate the data in the DataFrame; and generate line plots using Matplotlib
Introduction to Matplotlib and Line Plots
Question 1: Using the inline backend, you can modify a figure after it is rendered.
- A. [ ] True
- B. [X] False
Question 2: Which of the following are examples of Matplotlib magic functions? Choose all that apply.
- A. [X] %matplotlib inline
- B. [ ] #matplotlib notebook
- C. [ ] $matplotlib outline
- D. [X] %matplotlib notebook
- E. [ ] #matplotlib inline
Question 3: Matplotlib was created by John Hunter, an American neurobiologist, and was originally developed as an EEG/ECoG visualization tool.
- A. [X] True
- B. [ ] False