I made a little 'bihist' function to transform histograms to bi-histograms (e.g., see also Antonio Gonzalez's version, The chosen approach is just a small 'post-production' routine that still allows full control over plotted histograms.

Let me know if it's useful.

PS: would there be any "centralized" repository (besides the mailing list and the already over-crowded example list) where to gather all these kinds of matplotlib bits? Or a dedicated toolkit, where power functions could mature before possibly being integrated into plain matplotlib? (3.13 KB)



    .~. Yannick COPIN (o:>* Doctus cum libro
    /V\ Institut de physique nucléaire de Lyon
   // \\ === *** AWAY FROM THE OFFICE *** ===
  /( )\ AIM: YnCopin ICQ: 236931013