Matplotlib Flashcards

1
Q

What is the syntax for a bar chart?

A

plt.bar(x,height)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the syntax for a scatter?

A

plt.scatter(x,y)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How do you add a legend?

A

plt.legend()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do you determine size?

A

s =

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How do you change the shape of the data point?

A

marker =

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How do you change the colour?

A

color =

How well did you know this?
1
Not at all
2
3
4
5
Perfectly