This training module introduces matplotlib and creates plots commonly used in HEP. It also introduces mplhep, a plotting library designed specifically for HEP plots.
This training module is part of the HSF Software Training Center, a series of training modules that serves HEP newcomers the software skills needed as they enter the field, and in parallel, instill best practices for writing software.
Topic | |
---|---|
1 | Introduction |
2 | Physics Background |
3 | Higgs Search |
4 | Plotting with mplhep for HEP Style Plotting |
5 | Dimuon Spectrum |
You can build this book locally on the command line following these steps:
-
Install Anaconda
-
Install Jupyter Book using conda
conda install -c conda-forge jupyter-book
- Create a new environment and activate it
conda create --name jupyter_book
conda activate jupyter_book
- Clone the repository containing the book source files
git clone [email protected]:amorenobr/matplotlib_for_hep_jb.git
- Build your Jupyter Book
jb build --all matplotlib_for_hep_jb
- View the Jupyter Book in a browser
google-chrome-stable _build/html/index.html
firefox _build/html/index.html