Python Charts
    • Matplotlib 71 The core library, with full control over every element
    • Plotly 27 Interactive charts for the web and notebooks
    • Seaborn 23 Statistical plots straight from DataFrames
    • Pandas 8 Quick charts with df.plot()
    • Altair 5 Declarative charts built on Vega-Lite
    • Plotnine 3 ggplot2's grammar of graphics in Python
    • Streamlit 12 Charts inside Streamlit data apps
    • A/B Testing 15 Sample size, analysis and sequential tests
    • Machine Learning 14 Evaluate and explain scikit-learn models
    • Causal Inference 10 Diff-in-diff, synthetic control, IV and more
    • AI 1 Use LLMs to build charts from your data
  • Python
  • All Posts
  • Seaborn regplot and lmplot: Regression Lines
    Seaborn

    Seaborn regplot and lmplot: Regression Lines

    Add a regression line to a scatter plot with sns.regplot, split it by group with sns.lmplot, fit curves, handle outliers and yes/no outcomes, and get the slope and intercept.

    Nov 27, 2026
    seaborn regplot lmplot regression scatter line of best fit

Python plotting and visualization demystified

© 2026 PythonCharts.com. All rights reserved.
  • About
  • Credits
  • Privacy Policy