November 2018
Beginner to intermediate
214 pages
5h 2m
English
In the preceding output, we can see that all of the lines makes telling the difference between them difficult. To customize the appearance of the violin plots, we must return the value of plot n, and put it into something so that we can look at it. Hence, when we print this vplot, we get a dictionary with some keys:
# Show Median & Meansvplot = plt.violinplot(dists, showmeans=True, showmedians=True);print(vplot)
We will get the following output:

The keys are as follows:
dict_keys(['bodies', 'cmeans', 'cmaxes', 'cmins', 'cbars', 'cmedians'])
Each of the keys corresponds to the different components of the ...
Read now
Unlock full access