Skip to content

pkomiske/MODPlot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MODPlot

PyPI version python versions

This is a standalone package version of some of the plotting functions used in the making of MOD plots. See 1908.08542 for an example publication that used this style. An earlier version of this code can be found here.

Functions

  • axes - Makes a figure and axes in the MOD style.
  • calc_hist - Calculates a histogram and its errors from (weighted) data.
  • style - Gets some default style options.
  • cms_style - Default style options for CMS data.
  • sim_style - Default style options for SIM.
  • gen_style - Default style options for GEN.
  • truth_style - Default style options for truth (whatever that might be).
  • legend - Adds a legend with the option to reorder its entries.
  • stamp - Adds a multi-line textual "stamp" on the plot.
  • save - Saves a plot, optionally with the MOD watermark.
  • watermark - Adds the MOD watermark.

Global Variables

  • PLOTS_PATH
  • BARE_PLOTS_SUBDIR
  • MOD_LOGO_FILEPATH

About

Useful functions for creating matplotlib plots in the MOD style.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages