plothist
  • Installation and update
  • Contributing

Simple examples

  • Plot 1D histograms
  • Plot 2D histograms

Advanced examples

  • Plot and compare model and data
  • Other advanced examples

Utilities

  • Variable registry
  • Style and colors
  • Utility functions
  • Plot result of a fit

Documentation

  • Example gallery
    • Plot 1D histograms
      • Histogram
      • Histogram with uncertainties
      • Mean histogram (profile)
      • Comparison
      • Ratio
      • Pull
      • Ratio, split errors
      • Asymmetry
      • Multiple histograms
      • Relative difference
      • Stack histograms
      • Efficiency
      • Integer categories
      • Difference
      • String categories
      • Side-by-side categories
    • Plot 2D histograms
      • 2D histogram
      • 2D histogram, uneven binning
      • 2D histogram with projections
      • 2D histogram, discrete colormap
      • 2D histograms
    • Plot simple functions
      • Function
      • Stacked functions
    • Model and data
      • Model with stacked and unstacked functional components
      • Data vs functional model
      • Pull plot
      • Data vs model with unstacked components
      • Pull plot, no model uncertainty
      • Data vs model with stacked and unstacked components
      • Model with stacked and unstacked components
      • Data vs model with stacked components
      • Data/model comparisons
      • Data/model comparisons, no model uncertainty
    • Other advanced plots
      • Flatten 2D histograms
      • Side-by-side categories, with numbers on top
      • Multiple comparisons
      • Advanced asymmetry comparison
    • Utilities
      • Add text
      • Default style: matplotlib vs plothist
      • Color palettes in stacked histograms
      • Color palettes
      • Representation of different uncertainty types.
  • Package references
  • Notes on statistics
  • Troubleshooting
plothist
  • Example gallery
  • View page source

Example gallery

Gallery of images that are used in the doc.

Note

Click on an image to see the source code that generates it.

Plot 1D histograms

Gallery of images that are used in the 1D histogram section.

Histogram

Histogram

Histogram with uncertainties

Histogram with uncertainties

Mean histogram (profile)

Mean histogram (profile)

Comparison

Comparison

Ratio

Ratio

Pull

Pull

Ratio, split errors

Ratio, split errors

Asymmetry

Asymmetry

Multiple histograms

Multiple histograms

Relative difference

Relative difference

Stack histograms

Stack histograms

Efficiency

Efficiency

Integer categories

Integer categories

Difference

Difference

String categories

String categories

Side-by-side categories

Side-by-side categories

Plot 2D histograms

Gallery of images that are used in the section about plotting 2D histograms.

2D histogram

2D histogram

2D histogram, uneven binning

2D histogram, uneven binning

2D histogram with projections

2D histogram with projections

2D histogram, discrete colormap

2D histogram, discrete colormap

2D histograms

2D histograms

Plot simple functions

Gallery of images that are used in the basic function section.

Function

Function

Stacked functions

Stacked functions

Model and data

Gallery of images that are used in the plotting model and data section.

Model with stacked and unstacked functional components

Model with stacked and unstacked functional components

Data vs functional model

Data vs functional model

Pull plot

Pull plot

Data vs model with unstacked components

Data vs model with unstacked components

Pull plot, no model uncertainty

Pull plot, no model uncertainty

Data vs model with stacked and unstacked components

Data vs model with stacked and unstacked components

Model with stacked and unstacked components

Model with stacked and unstacked components

Data vs model with stacked components

Data vs model with stacked components

Data/model comparisons

Data/model comparisons

Data/model comparisons, no model uncertainty

Data/model comparisons, no model uncertainty

Other advanced plots

Gallery of images that are used in the other advanced plots section.

Flatten 2D histograms

Flatten 2D histograms

Side-by-side categories, with numbers on top

Side-by-side categories, with numbers on top

Multiple comparisons

Multiple comparisons

Advanced asymmetry comparison

Advanced asymmetry comparison

Utilities

Gallery of images that are used in the utility section.

Add text

Add text

Default style: matplotlib vs plothist

Default style: matplotlib vs plothist

Color palettes in stacked histograms

Color palettes in stacked histograms

Color palettes

Color palettes

Representation of different uncertainty types.

Representation of different uncertainty types.

Download all examples in Python source code: example_gallery_python.zip

Download all examples in Jupyter notebooks: example_gallery_jupyter.zip

Gallery generated by Sphinx-Gallery

Previous Next

© Copyright 2023-2026, Cyrille Praz, Tristan Fillinger.

Built with Sphinx using a theme provided by Read the Docs.