Badly behaved data, part 1: Create and plot the data

We have seen how Matplotlib’s ginput() function can be used to mark regions of interest on plots. Sometimes, the fine details of a plot can only be viewed by using the zoom and pan features to visualise the data. Zoom (magnifying glass icon) and pan buttons (square with 4 arrows icon) are available by default in the toolbar of a
Read moreIn a previous post we learned how to use matplotlib’s gridspec to make subplots of unequal size. gridspec is quite powerful, but can be a little complicated to use. This is especially true if you are coming to Python from Matlab. In the current post we learn how to make figures and subplots in a manner that will be more
Read moreScientific figures are at their most informative when they include the individual data used to calculate summary statistics such as means and standard deviations. Why is showing data important? As previously pointed out here and here, figures with means, standard deviations, standard errors, etc. can be misleading and conceal the nature of the underlying data. As highlighted in our previous
Read more