From the course: Data Visualization with Matplotlib and Seaborn
Unlock this course with a free trial
Join today to access over 25,200 courses taught by industry experts.
Solution: GridSpec - Python Tutorial
From the course: Data Visualization with Matplotlib and Seaborn
Solution: GridSpec
- [Instructor] All right everybody, our solution code is up on the right. And the important part of this problem was less about getting your individual charts built correctly and more about creating this layout. So, most of our walkthrough is actually going to stay right here on this slide. As I mentioned in the introduction to this assignment, your individual parameters for things like figure size or your GridSpec rows and columns might be a little bit different than mine. The goal, once again, was to build a figure that had a line chart on the top, your bar chart in the bottom left, and your donut chart in the bottom right. But for my figure size I used 11 and 8.5. For our GridSpec layout I used eight rows and eight columns. Generally speaking, I like to think in terms of squares, so having a square that was subdividable by two and four was really handy here. But you may have chosen different parameters, and that's okay as long as you got a similar layout. So, for our line chart…
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 advanced customization58s
-
(Locked)
Subplots9m 47s
-
(Locked)
Challenge: Subplots2m 12s
-
(Locked)
Solution: Subplots4m 45s
-
(Locked)
GridSpec6m 17s
-
(Locked)
Challenge: GridSpec2m 43s
-
(Locked)
Solution: GridSpec4m 10s
-
(Locked)
Color options3m 3s
-
(Locked)
Color palettes4m 50s
-
(Locked)
Challenge: Colors1m 53s
-
(Locked)
Solution: Colors1m 34s
-
(Locked)
Style sheets4m 19s
-
(Locked)
Challenge: Style sheets1m 9s
-
(Locked)
Solution: Style Sheets1m 11s
-
(Locked)
rcParams6m 57s
-
(Locked)
Saving figures and images2m 46s
-
(Locked)
Key takeaways48s
-
(Locked)
-
-
-