Getting data of a box plot - Matplotlib
I have to plot a boxplot of some data, which I could easily do with Matplotlib . However, I was requested to provide a table with the data presented there, like the whiskers, the medians, standard deviation, and so on. I know that I could calculate these "by hand", but I also know, from the reference, that the boxplot method: Returns a dictionary mapping each component of the boxplot to a list of the matplotlib.lines.Line2D instances created. That dictionary has the following keys (assuming vertical boxplots): boxes: the main body of the boxplot showing the quartiles and the median’s