Skip to content
KnowledgeCity

Python: Overview of Data Visualization and Library of Choice

Learn how to plot line graphs using Matplotlib
Preview the first lesson free — get full access to all 3 lessons.
Course: On-Demand
Intermediate Provider Brian Higgins  3 Lessons ·  15m  in Arabic, German, English, Spanish, French, Portuguese, Chinese 

Course Description

These lessons will show you how to plot points using x and y coordinates. Then you will draw a line between the points. You will also learn to draw multiple lines on the same plot. The line plots can be enhanced by adding styling. With these line plots you will learn how to add a plot title, labels for the x and y axes, and labels for each plot line. You will also see how to add a legend containing each of the plot line labels. Additionally, you will be able to add an underlying grid pattern to your plot to make it easier to read and to locate plot points within the graph. Point markers are formatted, different styles can be used for lines (dotted, dashed, etc), and plot lines can be assigned colors. These lessons will use the Matplotlib library Pyplot submodule to accomplish most of these tasks.

What You'll Learn

  • Plot points using x and y coordinates and draw a line between them
  • Create your first line plot using the Matplotlib library's Pyplot submodule
  • Plot multiple lines on the same graph
  • Style line plots with titles, axis labels, line labels, and a legend
  • Add an underlying grid pattern to make plots easier to read
  • Format point markers, apply line styles (dotted, dashed), and assign colors to plot lines

Key Takeaways

  • The course teaches plotting points with x and y coordinates and drawing lines between them.
  • Multiple lines can be drawn on the same plot, and line plots can be enhanced with styling.
  • Line plots can include a plot title, x and y axis labels, labels for each plot line, and a legend of those labels.
  • An underlying grid pattern can be added to a plot to make it easier to read and to locate plot points.
  • The lessons use the Matplotlib library's Pyplot submodule to accomplish most of these tasks.

Frequently Asked Questions

What library does this course use?

The lessons use the Matplotlib library's Pyplot submodule to accomplish most of the tasks.

What will I be able to do after taking this course?

You will become proficient in using the Matplotlib library to create line plots, style line plots, and plot multiple lines on the same graph.

What styling options does the course cover?

It covers adding a plot title, x and y axis labels, line labels, and a legend; adding a grid pattern; formatting point markers; using different line styles such as dotted and dashed; and assigning colors to plot lines.

What lessons are included?

The course includes three lessons: First Plot, Plot Styling, and Multi-line Plots.

What skills does this course build?

It builds skills in Data Visualization, Graphing, Information Visualization, Matplotlib (Python Package), Scientific Visualization, and Visualization.