The Aesthetics Layer
00:00 In the previous lesson, you created the data layer, but all you got was a gray square. In this lesson, you will apply aesthetics to this data layer and put them together to end up with a graph that’s already more meaningful than the previous one.
y is going to be the efficiency on the highway, so how many miles it can drive per liter. And with these two inputs, you’re done. You can execute this, and you get a graph that’s already much more meaningful than the previous one.
02:17 You don’t have to change them yourself. But just know that these are additional layers that you can also adapt if you want to. Now, while this looks much better and you applied two aesthetics successfully, you still don’t see anything because there’s no geometric objects defined, so plotnine doesn’t know how to plot the data points for you.
Become a Member to join the conversation.