Learn

Nice work, we’ve made it to the end of this lesson! We learned about the general structure of charts in matplotlib and made a line chart from start to finish. We learned that…

  • general functions allow us to change general aspects of the graph, like its title, legend, or axis scaling and labels
  • graph functions like plt.plot() and plt.scatter() generate specific types of charts
  • stacking graph functions and general functions will build and customize many different charts

We made a line chart using plt.plot(), changed the line colors using the color parameter, and covered the following general functions: plt.title(), plt.xlabel and plt.ylabel(), plt.legend(), and plt.savefig().

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?