Prep for Class

Installing Matplotlib

  • Windows: python -m pip install matplotlib
  • Mac: pip3 install --user matplotlib

Key Ideas

In-Class Activity

  • Modify graphs.py to label the x-axis as x and the y-axis as y.
  • Modify graphs.py to plot the straight lines with magenta dashes. Hint.
  • Modify graphs.py to draw the sine wave with 5 point size.
  • Modify graphs.py by replacing plt.xlim and plt.ylim (in the main function) with an equivalent plt.axis statement.

Active Learning

  • Reproduce this graph as closely as possible.
  • Assumption: There are 10 students whose student IDs are 1 through 10.
  • Assumption: Practicum scores can range from 0 to 100 and are generated randomly.
  • Assumption: You are Student 5. The label me appears below each of your scores.