Eating healthy

Report a typo

Your friend wants to eat healthily. That's why they track the amount of money they spend on biscuits and fruits. They have created this area chart:

Match the variables on the stacked area plot to the code

Here's the code that your friend has written:

plt.stackplot(a, b, c, labels=["biscuits", "fruit"], colors=["green", "brown"])

The code is correct, but the variables are named with letters that don't make sense. Use your knowledge of matplotlib and figure out what each of the variables stand for. Match the variable name to it's meaning.

Tip: The order of labels and colors might help you to figure out the order of datasets.

Match the items from left and right columns
a
b
c
there's no variable for that
Biscuits, values in the first dataset
Numbers [10, 20, 30, 40, 50] for the Y-axis
Months, values on the X-axis
Fruit, values in the second dataset
___

Create a free account to access the full topic