Matplotlib Flashcards
1
Q
What is the syntax for a bar chart?
A
plt.bar(x,height)
2
Q
What is the syntax for a scatter?
A
plt.scatter(x,y)
3
Q
How do you add a legend?
A
plt.legend()
4
Q
How do you determine size?
A
s =
5
Q
How do you change the shape of the data point?
A
marker =
6
Q
How do you change the colour?
A
color =