MSK Institute LogoMSK.Institute
HomeCourses
Book Free Demo➔Sign In
Free Demo➔
MSK Institute LogoMSK.Institute

Leading computer training academy in Shikohabad for software engineering, Python, web development, and digital literacy.

ISO 9001:2015 Certified Center
Follow & Connect
4.9

Programs & Admissions

  • All CoursesCatalog
  • Learning PathsRoadmaps
  • Student ProjectsShowcase
  • Live Classes & ScheduleLive
  • Upcoming Batches
  • Campuses & LocationsHub
  • Verify Certificates
  • Book Free Demo Class

Resources & Tools

  • Free Online Mock TestsAll Tests
  • NIELIT CCC Mock TestFree
  • Course & Career FinderQuiz
  • Study Material Hub
  • All MSK ToolsHub
  • Keyboard ShortcutsNew
  • TypeQuest Speed LabTyping
  • MSK Code PlaygroundCode
  • Interactive Tutorials
  • Quick Cheatsheets

Institute & Contact

  • About MSK Institute
  • Careers & InternshipsHiring
  • Publications & Blogs
  • Gali No. 3, Near Gyan Jyoti Public School,
    Adarsh Nagar, Shikohabad, Uttar Pradesh 283135
  • +91 83930 42166
  • mskshikohabad@gmail.com
  • Hours:Mon – Sat: 8:00 AM – 7:00 PM | Sun: 10:00 AM – 2:00 PM
  • 4.9 ★(38 Google Reviews)
© 2026 MSK Institute. All rights reserved.•Privacy Policy•Terms of Service•Disclaimer•Contact Us

Shikohabad's Leading Computer & Coding Academy

Home
Courses
Live
Material
Relational Plots: scatterplot with hue & size mapping0%
Study MaterialsCheatsheet
Data Visualization & Applied StatisticsProgress 0%
1.1Why Data Visualization Matters in Decision Making1.2Python Visualization Landscape: Matplotlib vs Seaborn vs Plotly1.3Setting Up Jupyter, Inline Plotting & Figure Sizing
3.1Seaborn Themes, Palettes & Aesthetics3.2Distribution Plots: histplot, kdeplot, and ecdfplot3.3Categorical Plots: boxplot, violinplot, and countplot3.4Relational Plots: scatterplot with hue & size mapping3.5Correlation Heatmaps & PairPlots for Multivariate EDA
HomeTutorialsData Visualization & Applied StatisticsRelational Plots: scatterplot with hue & size mapping
Correlation Heatmaps & PairPlots for Multivariate EDA

Relational Plots: scatterplot with hue & size mapping

Intermediate6 min read•Updated: 2026-11-18•By Er. Sumit Kumar (MSK Institute)
Study MaterialsCheatsheet

1. Visualizing Relationships Between Continuous Variables

To understand how two numeric variables interact (e.g. Advertising Spend vs Revenue, or Engine Size vs Fuel Efficiency), use sns.scatterplot().


2. Multi-Dimensional Encoding (Hue, Size & Style)

In a single 2D plane, Seaborn can visualize up to 5 variables simultaneously through aesthetic dimension mapping:

  • X-axis: Numeric Variable 1
  • Y-axis: Numeric Variable 2
  • hue: Categorical Variable 3 (Color)
  • size: Numeric Variable 4 (Marker bubble diameter)
  • style: Categorical Variable 5 (Marker shape: circle, cross, triangle)
1import seaborn as sns
2import matplotlib.pyplot as plt
3 
4df = sns.load_dataset('tips')
5 
6fig, ax = plt.subplots(figsize=(9, 6))
7 
8sns.scatterplot(
9 data=df,
10 x='total_bill',
11 y='tip',
12 hue='time', # Color by Lunch vs Dinner
13 size='size', # Bubble size by table party size (1 to 6 people)
14 sizes=(30, 250),
15 style='smoker', # Shape by Smoker Yes/No
16 palette='deep',
17 alpha=0.8,
18 ax=ax
19)
20 
21ax.set_title('Tip Amount vs Total Bill (Multivariate Relationship)')
22ax.set_xlabel('Total Bill (USD)')
23ax.set_ylabel('Tip Given (USD)')
24plt.show()

Interactive Quiz• Knowledge Check

Practice Quiz

Question 1
Which parameter in sns.scatterplot() scales the diameter of points based on a numeric column (creating a bubble chart)?
Question 2
How can you add a linear regression best-fit trendline to a scatter plot in Seaborn?
Question 3
What does setting alpha=0.5 do in a dense scatter plot with thousands of overlapping points?
Question 4
Which parameter changes the marker shape (e.g. circles, squares, diamonds) based on a categorical variable?
Question 5
What does a positive correlation look like on a scatter plot?

Next Lesson

Correlation Heatmaps & PairPlots for Multivariate EDA

Continue learning with hands-on practice, examples, and exercises in the upcoming topic.

Related Lessons

Previous LessonNext Lesson
Categorical Plots: boxplot, violinplot, and countplotCorrelation Heatmaps & PairPlots for Multivariate EDA

Practice Quiz

Test your understanding of this lesson with 5 questions. Each question has one correct answer.

12-Month Data Analysis Mastery Program

Master Full-Stack Data Analytics (Excel, SQL, Python, Power BI & Tableau)

Combine 15 complete courses, 150 chapters, 541 topics, live SQL/Power BI/Tableau dashboards, and Scikit-Learn capstones at MSK Institute Shikohabad or Live Online.

View Full CourseBook Free Demo
PreviousNext
PreviousPrevNext