How to Draw a Scatter Plot
In this lesson, we will learn two ways to draw a scatter plot.
A scatter
plot is used to plot data points on a figure based on the horizontal and vertical axes. Scatter plots can be used to show the relationship between two variables. They can also show how data clusters in a dataset. One of the most striking features of drawing scatter plots in Matplotlib is the ability to set different colors and sizes for individual data points by using additional variables.
Drawing a scatter plot from plot()
If we provide a series of data points, we can use plot()
to draw them on a graph. Below is an example code that will ...
Access this course and 1400+ top-rated courses and projects.