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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

Details for the file MODPlot-0.1.1.tar.gz.

File metadata

  • Download URL: MODPlot-0.1.1.tar.gz
  • Upload date:
  • Size: 20.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.10

File hashes

Hashes for MODPlot-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c1dc84b881ac2c3dfa1b84493413c8fa7bb26da707ec04fa65c1eb1fe5e97b74
MD5 12e11054e9746c1fdff30f76b790b27e
BLAKE2b-256 5c1a341a25ab1677ba3b7c219d30bf8ce53cc8f4c95d79729fd52509f026b408

See more details on using hashes here.

File details

Details for the file MODPlot-0.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: MODPlot-0.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 20.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.10

File hashes

Hashes for MODPlot-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5f744319d78ca06a10c7ebd6df822777a93bc47cd979d373b780cd1cdf50f0f9
MD5 3365d59e2f3be0ee9522ee1f95ac6b9d
BLAKE2b-256 dffef1522212f55db5c0d7da406d7fa1af6b73dda524675f03b7ae818a7c3e4e

See more details on using hashes here.

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