What are Seaborn's plotting contexts (paper, notebook, talk, poster), and how do they help size a figure for its medium?

Quick Overview

Asks what Seaborn's paper, notebook, talk and poster contexts are and how they adapt a figure to the medium it will be shown in. Tests practical plotting knowledge: which elements a context scales, how it relates to figure size, and how to set or override it.

What are Seaborn's plotting contexts (paper, notebook, talk, poster), and how do they help size a figure for its medium?

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: easy

Interview Round: Other

What are Seaborn's plotting contexts (`paper`, `notebook`, `talk`, `poster`), and how do they help size a figure for its medium? ```hint Separate the knobs Work out which properties of a figure a context changes and which it leaves alone, then ask what that means for the figure size you still have to choose. ``` ### What a Strong Answer Covers - What the four contexts are and how they are ordered by scale - Which plot elements a context changes, and which belong to style, palette or figure size - Why a preset helps when the same figure goes to a paper, a screen, a slide or a poster - How to set a context globally or temporarily, and how to fine-tune it ### Follow-up Questions - If you call `sns.set_context("poster")` after a plot has already been drawn, does that plot change? Why? - How would you produce a figure for a two-column paper so its text matches the size of the body text? - What is the difference between the `font_scale` argument and an `rc` override?

Overview: Asks what Seaborn's paper, notebook, talk and poster contexts are and how they adapt a figure to the medium it will be shown in. Tests practical plotting knowledge: which elements a context scales, how it relates to figure size, and how to set or override it.

General logo
General
Nov 24, 2026
easyData ScientistOtherData Manipulation (SQL/Python)
0
0

What are Seaborn's plotting contexts (paper, notebook, talk, poster), and how do they help size a figure for its medium?

What a Strong Answer Covers Guidance

  • What the four contexts are and how they are ordered by scale
  • Which plot elements a context changes, and which belong to style, palette or figure size
  • Why a preset helps when the same figure goes to a paper, a screen, a slide or a poster
  • How to set a context globally or temporarily, and how to fine-tune it

Follow-up Questions Guidance

  • If you call sns.set_context("poster") after a plot has already been drawn, does that plot change? Why?
  • How would you produce a figure for a two-column paper so its text matches the size of the body text?
  • What is the difference between the font_scale argument and an rc override?