From the course: Python for Data Science Tips, Tricks, & Techniques

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Styling plots in ggplot

Styling plots in ggplot - Python Tutorial

From the course: Python for Data Science Tips, Tricks, & Techniques

Start my 1-month free trial

Styling plots in ggplot

- [Lecturer] Visualizing your data has a lot to do with how you style your data and in order for the message that is hidden in your data to really come through you need to understand how to apply things like color. So in this video I'm going to show you how to do just that. We're going to start by importing our libraries here. We'll get warnings that we're used to seeing based on our version of Python and from there let's just start with the basic scatter plot. You can see here that while we have a lot of data on the screen, it's really hard to discern what's what, because they're all the same color. Let's add some color. Now out of the box ggplot is going to use its own builtin color library, but you can do better than that and I would recommend using ColorBrewer. So ColorBrewer is a really great resource that was created to help us with different types of color palettes. So, first and foremost, I want to show you how to use a sequential color palette, this is a singular type of…

Contents