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

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,…

Contents