Announcements
- Starting the 2nd half of the course today! Plotting will be a big part of the class moving forward.
Goals
- Learn to make some basic plots using matplotlib
0) Get the GitHub repository and clone it to your area in Rivanna.
Use this link to accept the assignment and create your repository and clone it to your area on Rivanna:
https://classroom.github.com/a/074_p7bM
1) Making plots with Matplotlib and Python.
1a)
Work through the Jupyter Notebook. Thinking about what is happening in each step.
1b)
If time is remaining: Based on what you learned in the Notebook write a python program (a script) called plot_iris.py. This program should load all 3 iris datasets into numpy arrays using the loadtxt function, fill a histogram of the petal width, and plot the petal width in cm in a 1x3 figure for the three classes, and save the file as petal_width.png. Make sure your figure has the important features of a good plot (title, axis labels, units, legend, ...)!
Done? Add some documentation to your programs, and push them to your GitHub repository: plot_iris.py, petal_width.png, iris.png, iris_3.png, and class14.ipynb.