From the course: Python for Marketing (2019)
Unlock this course with a free trial
Join today to access over 22,600 courses taught by industry experts.
Plotting a secondary y-axis - Python Tutorial
From the course: Python for Marketing (2019)
Plotting a secondary y-axis
- [Male Voice] In this video I'm going to Show you how to plot a Y-axis Y-axis are really important because particularly in the data I see usually I have one cone in that data that absolutely dwarfs all the other data. So when you port that you will see all the other data. Paint a little charts, like teeny little bars and one huge bar that kind of takes over everything. So by placing it on another axis it allows you to see them overlaid ontop of one another. So to plot another axis using map plot lib functions. We're going to create another axis for it and apply that to the values, that we know are disproportionately bigger then the other values. Or if your data's disproportionately smaller, you can do that. We're going to create a variable called figs. So fig equals P-L-T that's called map plot let and function figure and then we're passing the figure size. Then we're creating two subplots. So, that's E-X and E-X- two,…
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)
Custom visualizations in Python42s
-
(Locked)
Import, explore, and plot a basic chart4m 48s
-
(Locked)
Creating Matplotlib subplots2m 59s
-
(Locked)
Plotting a secondary y-axis2m 40s
-
(Locked)
Adding x and y labels to a plot2m 40s
-
(Locked)
Rotating xticks labels on plot2m 1s
-
(Locked)
Adding a legend to a plot1m 5s
-
(Locked)
Adding a title to your plot1m 26s
-
(Locked)
Adding annotations to plots3m
-
(Locked)
Switching between Matplotlib styles1m 3s
-
(Locked)
Using a scatter plot in Seaborn1m 8s
-
(Locked)
Customizing a scatter plot in Seaborn2m 21s
-
(Locked)
Creating a Facebook Ads heatmap in Seaborn2m 56s
-
(Locked)
-
-
-
-