Added a function to plot repartition diagram after the extraction