Course Content
First Dive into seaborn Visualization
First Dive into seaborn Visualization
1. Nice to Meet you, seaborn!
Let's Cope with Axes
Setting label names:
To set label names, we need to set a plot variable and use:
X(y)ticks rotation:
To rotate labels, we need to use:
Task
Swipe to begin your solution
- Import
seaborn
withsns
alias. - Import
matplotlib.pyplot
withplt
alias. - Import
pandas
withpd
alias. - Set label names
'Population'
(Oy axis) &'Years(2012-2022)'
(Ox axis). - Rotate labels along the Ox axis by 45 degrees.
- Show the plot.
Solution
Switch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?
Thanks for your feedback!
Section 3. Chapter 3
Let's Cope with Axes
Setting label names:
To set label names, we need to set a plot variable and use:
X(y)ticks rotation:
To rotate labels, we need to use:
Task
Swipe to begin your solution
- Import
seaborn
withsns
alias. - Import
matplotlib.pyplot
withplt
alias. - Import
pandas
withpd
alias. - Set label names
'Population'
(Oy axis) &'Years(2012-2022)'
(Ox axis). - Rotate labels along the Ox axis by 45 degrees.
- Show the plot.
Solution
Switch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?
Thanks for your feedback!
Section 3. Chapter 3
Switch to desktop for real-world practiceContinue from where you are using one of the options below