Olivier Gaudard

Olivier is a student in informatics, who loves coding and dataviz. He’s passionate about new technologies, lives in Nice (France) and practice BreakDance.

#13 Percent stacked barplot

A percent stacked barchart is almost the same as a stacked barchart. Subgroups are displayed on of top of each other, but data are normalised to make in sort that the sum of every subgroups…

#12 Stacked barplot with matplotlib

If you have groups and subgroups, you probably want to display the subgroups values in a grouped barplot or a stacked barplot. In the first case subgroups are displayed one beside each other, in the second case…

#11 Grouped barplot

A grouped barplot is used when you have several groups, and subgroups into these groups. Here is a method to make them using the matplotlib library. Note that you can easily turn it as a stacked…

#8 Add confidence interval on barplot

Consider that you have several groups, and a set of numerical values for each group. A barplot can be used in this condition to represent the average value of each group. However, this kind of figure…

#5 Control width and space in barplots

This post explains 1/ how to control width of bars in a barplot  2/ how to control space between them – with matplotlib.

#3 Control color of barplots

This post aims to describe how to use colors on matplotlib barplots. First, let’s load libraries and create a fake dataset: Now let’s study 3 examples of color utilization:

#2 Horizontal barplot

Here is a tip to turn your barplot horizontal with matplotlib. To do so just call the barh() function instead of bar().

#1 Basic Barplot

This is probably the most basic barplot you can do with python and matplotlib.