How To Make Scatter Plot with Regression Line using Seaborn in Python? Last Updated : 23 Jul, 2025 Comments Improve Suggest changes Like Article Like Report In this article, we will learn how to make scatter plots with regression lines using Seaborn in Python. Let's discuss some concepts :Seaborn : Seaborn is a tremendous visualization library for statistical graphics plotting in Python. It provides beautiful default styles and color palettes to make statistical plots more attractive. It is built on the highest of matplotlib library and also closely integrated to the info structures from pandas.Scatter Plot : Scatter plots are wont to observe the relationship between variables and uses dots to represent the connection between them. The scatter() method within the matplotlib library is employed to draw a scatter plot. Scatter plots are widely wont to represent relationships among variables and the way change in one affects the opposite.Regression Plot : Two main functions in seaborn are wont to visualize a linear relationship as determined through regression. These functions, regplot() and lmplot() are closely related and share much of their core functionality.Adding a regression curve to a scatterplot between two numerical variables is a good way to ascertain the linear trend. And we also will see an example of customizing the scatter plot with a regression curve.Steps RequiredImport Library (Seaborn)Import or load or create data.Plot the graph with the help of regplot() or lmplot() method.Example 1: Using regplot() methodThis method is used to plot data and a linear regression model fit. There are a number of mutually exclusive options for estimating the regression model. Python # importing libraries import seaborn as sb # load data df = sb.load_dataset('iris') # use regplot sb.regplot(x = "sepal_length", y = "petal_length", ci = None, data = df) Output :Example 2: Using lmplot() methodThe lmplot is another most basic plot. It shows a line representing a linear regression model along with data points on the 2D-space and x and y can be set as the horizontal and vertical labels respectively. Python # importing libraries import seaborn as sb # load data df = sb.load_dataset('iris') # use lmplot sb.lmplot(x = "sepal_length", y = "petal_length", ci = None, data = df) Output : Comment More info D deepanshu_rustagi Follow Improve Article Tags : Python Python-Seaborn Explore Python FundamentalsPython Introduction 3 min read Input and Output in Python 4 min read Python Variables 5 min read Python Operators 5 min read Python Keywords 2 min read Python Data Types 7 min read Conditional Statements in Python 3 min read Loops in Python - For, While and Nested Loops 6 min read Python Functions 5 min read Recursion in Python 4 min read Python Lambda Functions 5 min read Python Data StructuresPython String 5 min read Python Lists 4 min read Python Tuples 4 min read Python Dictionary 3 min read Python Sets 6 min read Python Arrays 7 min read List Comprehension in Python 4 min read Advanced PythonPython OOP Concepts 11 min read Python Exception Handling 5 min read File Handling in Python 4 min read Python Database Tutorial 4 min read Python MongoDB Tutorial 2 min read Python MySQL 9 min read Python Packages 12 min read Python Modules 7 min read Python DSA Libraries 15 min read List of Python GUI Library and Packages 3 min read Data Science with PythonNumPy Tutorial - Python Library 3 min read Pandas Tutorial 6 min read Matplotlib Tutorial 5 min read Python Seaborn Tutorial 15+ min read StatsModel Library- Tutorial 4 min read Learning Model Building in Scikit-learn 8 min read TensorFlow Tutorial 2 min read PyTorch Tutorial 6 min read Web Development with PythonFlask Tutorial 8 min read Django Tutorial | Learn Django Framework 7 min read Django ORM - Inserting, Updating & Deleting Data 4 min read Templating With Jinja2 in Flask 6 min read Django Templates 7 min read Python | Build a REST API using Flask 3 min read How to Create a basic API using Django Rest Framework ? 4 min read Python PracticePython Quiz 3 min read Python Coding Practice 1 min read Python Interview Questions and Answers 15+ min read Like