We’ve covered a lot! We learned about new graph functions

  • plt.bar() makes a bar chart
  • plt.scatter() makes a scatterplot
  • plt.pie() makes a pie chart
  • plt.hist() makes a histogram

And some new general functions

  • plt.errorbar() adds error bars, or confidence intervals, to any kind of chart
  • plt.subplot() allows us to compare graphs in a side-by-side or tiled format
  • plt.axline() creates AB lines to mark reference lines on a graph
  • plt.annotate() allows us to place annotations and arrows anywhere on a graph


The notebook to the right is set up for you to review all of the visualizations from this exercise, if you wish – as usual, just run the Setup cells at the top first.

Take this course for free

Mini Info Outline Icon
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Or sign up using:

Already have an account?