Scatter Plots explore the relationship between two numerical variables (features) of a dataset.
#MATPLOTLIB SCATTER HOW TO#
In this guide, we'll take a look at how to plot a Scatter Plot with Matplotlib. From simple to complex visualizations, it's the go-to library for most. The following is a simple scatter plot created using Matplotlib library. Matplotlib is one of the most widely used data visualization libraries in Python. X-axis represents an attribute namely sepal length and Y-axis represents the attribute namely sepal width. The following represents a sample scatter plot representing three different classes / species for IRIS flower data set. The scatter plot would show how different types of food make people feel different levels of fullness, satisfaction, and energy. For example, a scatter plot could be used to visualize the relationship between different types of food and how they make people feel. scatter plots can also be used to visualize relationships between non-numerical data sets.
The scatter plot would show how the weight and height of different people are related.
A scatter plot is a type of data visualization that is used to show the relationship between two variables.