PythonFan.org
Toggle Menu
Home
Online Python Compiler
Tutorials
Python FastAPI
Python Pandas
Python PyTorch
Python Seaborn
Blog
All Posts
Seaborn Customization Tricks
Dive into themes,palettes,and complex visual layouts.
1. Which Seaborn function is primarily used to set the overall plotting theme?
set_style
set_context
set_theme
despine
2. Which of the following are valid Seaborn built-in themes (select all that apply)?
darkgrid
whitegrid
black
ticks
pastel
3. The 'sns.color_palette()' function returns a list of RGB tuples by default.
True
False
4. What parameter in Seaborn functions like relplot() or catplot() maps a variable to point color?
5. Which parameter of sns.despine() controls whether the left spine is removed?
left
remove_left
left_spine
trim_left
6. Which functions adjust the scaling of plot elements (e.g., font size, line width) in Seaborn? (select all that apply)
set_context
set_style
set_font_scale
rcParams
despine
7. What is the default color palette in Seaborn for the 'darkgrid' theme?
viridis
deep
muted
bright
8. Seaborn's 'set_style()' function can only be called once per session; subsequent calls are ignored.
True
False
9. Which method adds titles to subplots in a Seaborn FacetGrid object?
set_title
set_titles
suptitle
add_title
10. Which parameters customize the legend in Seaborn plots? (select all that apply)
legend
legend_title
loc
bbox_to_anchor
palette
11. Which function resets Seaborn's parameters to matplotlib defaults?
reset_defaults
reset_orig
set_defaults
restore_defaults
12. Name the Seaborn function that removes plot spines (e.g., top and right) by default.
13. Which methods create custom color palettes in Seaborn? (select all that apply)
List of hex color codes
color_palette() with a colormap name
List of RGB values
sns.light_palette()
set_style()
14. Which parameter controls transparency of plot elements (e.g., scatter points) in Seaborn?
alpha
transparency
alpha_level
opaqueness
15. What parameter sets a uniform color for all elements in a Seaborn plot (e.g., bars in barplot)?
Reset
Answered 0 of 0 — 0 correct