Course Content
Visualization in Python with matplotlib
Visualization in Python with matplotlib
Create a Complete Bar Chart
Task
Swipe to show code editor
- Assign the second call of the
.barh()
function to thebar2
variable. - Customize the plot:
- set x label to
'Rainfall (mm)'
; - y label to
'Month'
; - title to
'Average rainfall level in Indian cities'
; - limit the values on the x-axis to diapason
(0, 380)
.
- set x label to
- Add labels to bars:
- set
padding = -5
at the first call; - pass
bar2
as the first parameter at the second call.
- set
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 2. Chapter 10
Create a Complete Bar Chart
Task
Swipe to show code editor
- Assign the second call of the
.barh()
function to thebar2
variable. - Customize the plot:
- set x label to
'Rainfall (mm)'
; - y label to
'Month'
; - title to
'Average rainfall level in Indian cities'
; - limit the values on the x-axis to diapason
(0, 380)
.
- set x label to
- Add labels to bars:
- set
padding = -5
at the first call; - pass
bar2
as the first parameter at the second call.
- set
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 2. Chapter 10
Create a Complete Bar Chart
Task
Swipe to show code editor
- Assign the second call of the
.barh()
function to thebar2
variable. - Customize the plot:
- set x label to
'Rainfall (mm)'
; - y label to
'Month'
; - title to
'Average rainfall level in Indian cities'
; - limit the values on the x-axis to diapason
(0, 380)
.
- set x label to
- Add labels to bars:
- set
padding = -5
at the first call; - pass
bar2
as the first parameter at the second call.
- set
Switch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?
Thanks for your feedback!
Task
Swipe to show code editor
- Assign the second call of the
.barh()
function to thebar2
variable. - Customize the plot:
- set x label to
'Rainfall (mm)'
; - y label to
'Month'
; - title to
'Average rainfall level in Indian cities'
; - limit the values on the x-axis to diapason
(0, 380)
.
- set x label to
- Add labels to bars:
- set
padding = -5
at the first call; - pass
bar2
as the first parameter at the second call.
- set
Switch to desktop for real-world practiceContinue from where you are using one of the options below
Section 2. Chapter 10
Switch to desktop for real-world practiceContinue from where you are using one of the options below