Which is which?

Report a typo

Your friend works in a publishing house. They've gathered some data on the writers' performance depending on the number of hours they work per week. The performance is measured in the number of written articles.

They've collected quite a lot of data, so there're some errors. Your friend has experimented with plotting the data and ended up with four different charts. However, they all got mixed up! Can you match code snippets to their respective plots?

Code snippet 1

plt.errorbar(x, y, yerr=0.4, capsize=4)

Code snippet 2

plt.errorbar(x, y, yerr=0.4, fmt="o")

Code snippet 3

plt.errorbar(x, y, yerr=0.4, fmt="o", capsize=4)

Code snippet 4

plt.errorbar(x, y, yerr=[0.4, 0.3, 0.5, 0.1, 0.2, 0.4], fmt="o", capsize=4)

Plot A

A balanced error bar on a dot plot

Plot B

An unbalanced error bar on a dot plot

Plot C

Simple error bar plot

Plot D

A balanced error bar on a dot plot without caps

Match the items from left and right columns
Code snippet 1
Code snippet 2
Code snippet 3
Code snippet 4
Plot D
Plot C
Plot A
Plot B
___

Create a free account to access the full topic