-
Notifications
You must be signed in to change notification settings - Fork 112
Closed
Description
Directions state:
To do this, we set the first layer equal to the variable
fig. This represents our plot. All of our plots thus far have had a single layer. To include multiple layers in a plot, we simply include the argumentax=figin any subsequent layers. This tellspandasto put new layers on the original plot rather than to make a new plot.
- Make three different sub-DataFrames, one for each species, using
.loc[]and a Boolean mask. (Hint: This is the solution to Challenge 3)
2. Plot the first layer and set it equal tofig.
3. Plot subsequent layers. Use a different color for each species (look at the documentation for the name of the color parameter). Some possible colors to use are'green','red','purple','black', etc. (Remember to include the argumentax=fig!)- Do you notice a pattern in culmen measurements based on species? What other elements for the plot would be helpful for interpreting it?
However, solution sets all three .plot() calls to ax. Should update the first call to fig = , and update the ax=ax arguments to ax=fig for the next two .plot() calls.
Metadata
Metadata
Assignees
Labels
No labels