Skip to content

rhysics/resultsCompare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

resultsComp

Python Version License

A package for creating clean vertical comparison plots of different experimental results.

Results are accessed from a json file containing the following mandatory information per entry / result key

  • Name associated with result (label for plot)
  • Result central value
  • Total uncertainty

with the following supplemental information

  • Source of result (doi, arxiv, citation, ect)
  • Grouping (to group results from different scenarios (such as grouping LEP, Tevatron, and LHC results))
  • Flag for un published result (ie result shown at conference but not yet published)
  • Flag for "This Work"
  • Asymmetric uncertainties
  • Flag to use asymmetric uncertainties
  • pyplot color
  • pyplot marker

In addition the json can include information for one or more "theoretical" predictions

  • Theory name (band label)
  • Theory result
  • Theory uncertainty
  • Band style (filled, hashed, dotted, ect)
  • Band color
  • Band label position (top, inside)

The package contains multiple different layouts for the plot, see the Examples section below for details.

Quick Start

To make an results json file with empty fields to be filled with the relevant results run

resultsComp new_results --json_file my_results.json

This will create a json file my_results.json in the current directory.

Examples

Here are example plots using the package using results the CMS measurement of the weak mixing angle.

About

Designed for HEP-style summary plots, but general enough for any vertical result comparison.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages