From the course: Data Visualization with Matplotlib and Seaborn
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
Challenge: Dual axis line charts - Python Tutorial
From the course: Data Visualization with Matplotlib and Seaborn
Challenge: Dual axis line charts
- [Instructor] All right, we have another email in from Ian intern. Sadly this will be our last email from Ian. The subject line is another response to the subject final charts for clients. He writes us, Hey again, great work on those charts. Final request, we want to compare room nights booked versus cancellations over time. We might need to dual access chart to effectively do this. I'm totally checked out. Well, that's good to know. So can you do this? You'll be put into contact with the client soon. Thanks. And if you take a look at the chart on the right, we can see we're plotting room nights, which is in blue and is plotted on the left axis. And we're plotting bookings canceled, which is an orange, which is on the right axis. So let's go ahead and take a look at our section two assignments notebook really quick. All right, and so we want to plot the sum of nights booked and the sum of cancellations on a quarterly basis. So I've given you some intermediate code. So this is going…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Intro to Matplotlib6m 39s
-
(Locked)
Plotting methods6m 56s
-
(Locked)
Plotting DataFrames5m 35s
-
(Locked)
Challenge: Plotting DataFrames3m 14s
-
(Locked)
Solution: Plotting DataFrames2m 26s
-
(Locked)
Anatomy of a Matplotlib figure4m 9s
-
(Locked)
Chart titles and font sizes9m 46s
-
(Locked)
Chart legends10m 21s
-
(Locked)
Line styles2m 54s
-
(Locked)
Axis limits5m 30s
-
(Locked)
Figure sizes5m 13s
-
(Locked)
Custom axis ticks4m 3s
-
(Locked)
Vertical lines6m 43s
-
(Locked)
Adding text4m 38s
-
(Locked)
Pro tip: Text annotations5m 18s
-
(Locked)
Removing borders5m 59s
-
(Locked)
Challenge: Formatting charts2m 7s
-
(Locked)
Solution: Formatting charts2m 55s
-
(Locked)
Line charts3m 30s
-
(Locked)
Stacked line charts6m 41s
-
(Locked)
Dual axis charts8m 51s
-
(Locked)
Challenge: Dual axis line charts1m 51s
-
(Locked)
Solution: Dual axis line charts2m 43s
-
(Locked)
Bar charts10m 19s
-
(Locked)
Challenge: Bar charts1m 23s
-
(Locked)
Solution: Bar charts2m 37s
-
(Locked)
Stacked bar charts5m 25s
-
(Locked)
Grouped bar charts7m 38s
-
(Locked)
Combo charts7m 56s
-
(Locked)
Challenge: Advanced bar charts1m 22s
-
(Locked)
Solution: Advanced bar charts2m 56s
-
(Locked)
Pie and donut charts10m 37s
-
(Locked)
Challenge: Pie and donut charts1m 15s
-
(Locked)
Solution: Pie and donut charts2m 2s
-
(Locked)
Scatterplots and bubble charts5m 13s
-
(Locked)
Histograms10m 10s
-
(Locked)
Challenge: Scatterplots and histograms1m 40s
-
(Locked)
Solution: Scatterplots and histograms2m 44s
-
(Locked)
Key takeaways2m 23s
-
(Locked)
-
-
-
-
-