0

I would like to create a box plot from some pre-counted data (a histogram, essentially). Is it possible to do this in Python?

I am using matplotlib and I noticed that the boxplot function does not have something similar to the weights parameter of the hist function.

Călin
  • 347
  • 2
  • 13
  • Read this first: https://stackoverflow.com/help/mcve – Elis Byberi Nov 02 '17 at 21:25
  • Are you thinking of using wider boxes in your box plot to represent the histogram frequency? – zglin Nov 02 '17 at 21:28
  • @zhqiat I'm not sure I understand your question. The use-case is that I want to plot multiple such box plots in the same figure, so the advantage is that they are a more compact representation of the distribution. – Călin Nov 02 '17 at 21:34
  • I don't think this question is understandable. Please consider giving an example of what you are trying to achieve. – ImportanceOfBeingErnest Nov 02 '17 at 23:32

1 Answers1

1

OK, I found the answer here. The function I was looking for is bxp. This question asks how to create a box plot when only having access to the summary statistics, which is an even more compact version of my original issue: I can easily compute those statistics from my pre-counted data.

Călin
  • 347
  • 2
  • 13