Skip to main content

Functions to create matplotlib plots in the MOD style

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

MODPlot-0.1.1.tar.gz (20.3 kB view hashes)

Uploaded Source

Built Distribution

MODPlot-0.1.1-py2.py3-none-any.whl (20.2 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page