Course Content
Visualization in Python with matplotlib
Visualization in Python with matplotlib
Customize Your Line Chart
Task
Swipe to show code editor
-
Customize the lines so that:
- the first line (for the
usa
data) will be red ('r'
), dashdotted (-.
) and with star points ('*'
); - the second line (for the
can
data) will be green ('g'
), dotted (':'
) and with circle points ('.'
).
- the first line (for the
-
Add a legend to the plot.
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 1. Chapter 11
Customize Your Line Chart
Task
Swipe to show code editor
-
Customize the lines so that:
- the first line (for the
usa
data) will be red ('r'
), dashdotted (-.
) and with star points ('*'
); - the second line (for the
can
data) will be green ('g'
), dotted (':'
) and with circle points ('.'
).
- the first line (for the
-
Add a legend to the plot.
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 1. Chapter 11
Switch to desktop for real-world practiceContinue from where you are using one of the options below