Generating histograms and box plots

Matplotlib supports the creation of a variety of displays of data. In this recipe, we will demonstrate how to use two popular graphs representing data variability: histograms and box plots (also known as box-and-whisker plots). We will present a comparison between the distribution of heights in the male and female populations. To make the example self-contained, instead of using real data, we will simulate a population with the known distribution of heights for males and females.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset